Menu

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a custom menu in my application. Is there a way to enable/disable
specific menu items through VBA? I know I can display/hide the menu, but I
need to be able to enable/disable specific menu items. Can this be done?

Thanks in advance for your help!
 
Hi Peter,

Here is a past post of mine on this issue.
What you need to do is "walk-down" the command bars controls collection.

Here is an example:
CommandBars("SwitchboardMenu").Controls("Tools").Controls("Administration").Enabled = False

The menu bar is SwitchboardMenu.
Under the Tools menu on the SwitchboardMenu I am disabling the Administration option.
Hope that helps,
 

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

Similar Threads


Back
Top