custom menu to the Word's 'File' menu

V

vlad

Well, I've created some code to add the menu item I need:

Sub AddSaveToWFMenu()
Dim FileMenu As CommandBarPopup
Dim MyControl As CommandBarControl

Set FileMenu = CommandBars("Menu Bar").Controls(1)
Set MyControl = FileMenu.Controls.Add(Type:=msoControlButton, Before:=4,
Temporary:=True)
MyControl.Caption = "Save to Workflow"
MyControl.OnAction = "SaveToWF"
End Sub

Sub SaveToWF()
MsgBox "Success!!!" ' just to make sure it works
End Sub

Now I have the next questions:
how can I set an icon for this item? and
how can I make this menu item permanent? I would like my setup program to be
able to do it on any PC.

Thanks again,
vlad.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top