Hiding/Enabling Custom Menu Options

S

Sharkbyte

I have created a custom menu, and am having difficulty hiding and/or enabling
or disabling options. I am able to disable at the primary menu level, but
not a sub-level. For example:

The following works to gray-out the menu option Purchasing, from the base
menu:

Application.CommandBars("menuwms1").Controls("purchasing").Enabled = False


However, this next line doesn't work to turn off only the Purchase Order
option, below the Purchasing menu:

Application.CommandBars("menuwms1").Controls("purchasing").Controls("purchase order").Enabled = False


Does anyone have any ideas or suggestions?

Thanks in advance.

Sharkbyte
 

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