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
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