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