F
Frank
I want to use VBA to add a macro to a toolbar in Word.
When I record a macro doing this manually, it just leaves this VBA-command:
CommandBars("Menu Bar").Controls.Add Type:=msoControlButton, Before:= 19
without any reference to the name of the selected macro.
How do I write the VBA-code to add a given macro (say Normal.Modul1.Mymacro)
to the Standard toolbar (or a custom one) and editing the name property to
Mymacro?
Thanks, Frank
When I record a macro doing this manually, it just leaves this VBA-command:
CommandBars("Menu Bar").Controls.Add Type:=msoControlButton, Before:= 19
without any reference to the name of the selected macro.
How do I write the VBA-code to add a given macro (say Normal.Modul1.Mymacro)
to the Standard toolbar (or a custom one) and editing the name property to
Mymacro?
Thanks, Frank