R
Rudy
Hi All. I've build my custom menu in a word template .dot using VBA
Code like this:
Set myMenuBar = CommandBars.ActiveMenuBar
Set newMenu = myMenuBar.Controls.Add(Type:=msoControlPopup,
Temporary:=True)
newMenu.Caption = "Ciao"
...
every time i close the template, i run the AutoExit Macro that delete
all custom bar like this:
Dim mnu As CommandBar
On Error Resume Next
For Each mnu In Application.CommandBars
mnu.Reset
Next mnu
i put the same code that reset all when i open the .dot document
placed in Word's startup folder
Why if i leave my template .dot from startup and i open a normal word
document the menu remains?
I think i have understading problems with AutoExec and other automatic
Macros...
Can you help me?
Code like this:
Set myMenuBar = CommandBars.ActiveMenuBar
Set newMenu = myMenuBar.Controls.Add(Type:=msoControlPopup,
Temporary:=True)
newMenu.Caption = "Ciao"
...
every time i close the template, i run the AutoExit Macro that delete
all custom bar like this:
Dim mnu As CommandBar
On Error Resume Next
For Each mnu In Application.CommandBars
mnu.Reset
Next mnu
i put the same code that reset all when i open the .dot document
placed in Word's startup folder
Why if i leave my template .dot from startup and i open a normal word
document the menu remains?
I think i have understading problems with AutoExec and other automatic
Macros...
Can you help me?