G
glen.e.mettler
using 2007. I have created a couple of macros. One creates a menu
title "Utilities" that contains 2 options of utilities I want to run.
I have placed this menu macro along with the utilities macros into the
global file. When I open a project the menu is there with the options
but the options do not run. I can go into the editor and run them and
they work fine but not from the menu. Part of the menu macro is:
MyMenu.Caption = "Utilities"
Set MyButton = MyMenu.Controls.Add( _
Type:=msoControlButton, ID:=1, Before:=1)
With MyButton
.OnAction = "Format_Duraation"
.Style = msoButtonCaption
.Caption = "Format Duration"
End With
Set MyButton = MyMenu.Controls.Add( _
Type:=msoControlButton, ID:=1, Before:=2)
With MyButton
.OnAction = "Rollup_Formatting"
.Style = msoButtonCaption
.Caption = "Rollup Formatting"
End With
the Format_Duration and Rollup_Formatting came with the product. The
only thing I want to do is attach them to a utility menu for
convience. The menu macro works just fine, but I can't get it to run
the macros (and I don't know how to do a "step' to debug it.
Anybody know what I have done wrong?
Glen
title "Utilities" that contains 2 options of utilities I want to run.
I have placed this menu macro along with the utilities macros into the
global file. When I open a project the menu is there with the options
but the options do not run. I can go into the editor and run them and
they work fine but not from the menu. Part of the menu macro is:
MyMenu.Caption = "Utilities"
Set MyButton = MyMenu.Controls.Add( _
Type:=msoControlButton, ID:=1, Before:=1)
With MyButton
.OnAction = "Format_Duraation"
.Style = msoButtonCaption
.Caption = "Format Duration"
End With
Set MyButton = MyMenu.Controls.Add( _
Type:=msoControlButton, ID:=1, Before:=2)
With MyButton
.OnAction = "Rollup_Formatting"
.Style = msoButtonCaption
.Caption = "Rollup Formatting"
End With
the Format_Duration and Rollup_Formatting came with the product. The
only thing I want to do is attach them to a utility menu for
convience. The menu macro works just fine, but I can't get it to run
the macros (and I don't know how to do a "step' to debug it.
Anybody know what I have done wrong?
Glen