Help with CommandBars

T

Tim

I have created a custom Menu Bar and am trying to write
code to disable/enable one of the menus.

I think I need to use the CommandBars functionality but
I'm not sure how; can anyone assist?
 
T

Tim

Panic over - I've found the answer. For anyone interested
I had to include a new reference (Microsoft Office 9.0
Object Library) and I then used the following code, which
works a treat.

CommandBars("Name of Menu Bar").Controls("Name of
Menu").Enabled = False

Hope this helps some-one else.
 

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