Adding Menu Items to Word Document

S

Sean

I would like to add menu items to a word document using
VBA. I know how to use the BeforeDocumentOpen/Close
events but i'm not sure what the code to add the items
looks like.
For example, I would like to add a menu category called
Log Options with other items inside it such as "Start New
Report", "Change Info", etc. I would also like to assign
Macros to the items and bitmaps. I will also be using a
submenu with multiple items within it.

Thanks for the help.
 
J

Jezebel

Start by spending some time experimenting with doing this manually, until
you are comfortable that you understand the commandbars object model -- it's
one of MS's cludgier pieces of design, and it takes a bit of getting used
to. Add some menu and toolbar items (by hand), then play around in VBA to
find those items, change their captions, etc.

The think about your functional objectives. Rather than put code in the
document and run that every time the document opens, you could instead
create the menu and toolbar items, once, in the document's template. Then
your special menus will appear automatically, already set up.
 

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