Disabling menu options in a Custom Menu

V

VBAgroupie

Hello. Is there a way to disable certain menu options in a custom menu?
Depending upon the certain conditions I would like some options to show up
while others don't (grayed out). Is my only option is to have several menus?
Thanks.
 
J

Jeff Conrad

Here is a past post of mine which should help:
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 my SwitchboardMenu I am disabling the Administration option.
--
Jeff Conrad
Access Junkie - MVP
http://home.bendbroadband.com/conradsystems/accessjunkie.html
http://www.access.qbuilt.com/html/articles.html

in message:
 

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