Menu Bars

  • Thread starter Kevin McCartney
  • Start date
K

Kevin McCartney

Hi
I'd like to set several properties of a menu bar to false, the properties are

Show on Toolbars Men
Allow Customizin
Allow Resizin
Allow Movin
Allow Show Hidin

I expect the code to be something lik

Application.CommandBars("mytoolbar").Property("Show on Toolbars Menu") = Fals

but can not find an example in the help, can anyone tell me what the code should look lik

TI
cia
KM
 
V

Van T. Dinh

Application.CommandBars("MyToolBar").Enabled = False
Application.CommandBars("MyToolBar").Protection = msoBarNoCustomize + _
msoBarNoResize + msoBarNoMove + msoBarNoChangeVisible

Make sure you add the Office Object Library into the References of your
application. Otherwise, you need to replace the above symbolic constants
with the explicit values.
 

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