Enable/Disable submenu of a custome template menu?

M

ML

I have a custom menu in my template. Based on a userform selection I would
like to disable or enable some of the submenu items. How can this be done?
 
M

ML

I tried
CommandBars("ABC").Enabled = false

Seems to work for built in menus but if I give it the name of my custom menu
it give the error. Can you not reference a custom menu directly by name?

When I check the CommandBars collection my custom menu is not there either
and hence why the issue.

This is a custom menu that was added to the main Word menu. IT appears fine
and functions when the template is used but I cannot seem to find any way to
reference it in order to disable it.

Any ideas?
 

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