Allocate face ID to popup line in customized menu

P

Paul_

I have created a popup line (called "Mypopup"
in a customized menu (called "Macros") using the code

CommandBars("Menu
Bar").Controls("Macros").Controls.Add(Type:=msoControlPopup)
cmdMenuOp.Caption = "Mypopup"

Is it possible to allocate a face ID (integrated Word icon)
to the start of popup line in the menu ?

Thank you in advance for a response.
Paul
 
P

Paul_

Perry,
Thank you for your response.

In my menu I can add a new line to my menu
allocate a face ID using the code:

AddLine "Description of macro", "MyMacroName"
cmdMenuOp.Style = msoButtonIconAndCaption
cmdMenuOp.FaceId = 1437

Here I will see the icon with the face ID 1437.

However, when I make a submenu (an arrow appears on the right side
in the menu line and clicking on this reveals a submenu) using the
code

CommandBars("Menu
Bar").Controls("Macros").Controls.Add(Type:=msoControlPopup)
cmdMenuOp.Caption = "ThemeNameForSubmenu"

there seems unfortunately no way to add an icon.

I thought maybe there might be a workaround here to put in an icon
but now I am beginning to feel that Word does not allow for this.

Paul

PS There is also an IDBrowser DOT file available at
http://www.mvps.org/skp/faceid.htm

--------------------
 

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