Tools Bar

  • Thread starter Thread starter Julie
  • Start date Start date
J

Julie

Can anyone give me a code for closing all tool bars in
one go, and restoring to original state without entering
seperately one at a time?
Many thanks in advance
Julie
 
Julie, you can also do it this way:

For each cBar in application.commandbars
cbar.enabled = false
Next

and to re-activate,
For each cBar in application.commandbars
cbar.enabled = true
Next

If a toolbar is not enabled, it is not visible.

Bob Flanagan
Macro Systems
Delaware, U.S. 302-234-9857
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel
 

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

Back
Top