Macro to remove toolbar

  • Thread starter Thread starter George M. Lutz
  • Start date Start date
G

George M. Lutz

I use Word 2002.

I'd like a macro, to be part of the AutoOpen macro, that removes the
Reviewing toolbar if it exists in the opened document. If the
Reviewing toolbar does not exist, nothing would happen.

Your help is appreciated, as always.

George Lutz
 
Include the following in your macro:

CommandBars("Reviewing").Visible = False
 
Herb:

Thanks -- that worked well.

My next question is...how do I see a list of the proper names of tool
bars so that I can customize, through the use of AutoOpen, what
toolbars a particular document has. I know I can do it through the
use of customized templates, but I'd prefer using AutoOpen.

In other words, suppose I want to get rid of the Format toolbar. When
I adapt the command that you have shown me, how do I know whether the
proper name is Format, formatting, etc.?

Thanks.


George Lutz
 
Right click on any toolbar and see the list of toolbars. Those names
are the names you use in your code. So, for the Standard toolbar, the
code would be:

CommandBars("Standard").Visible = False
 
Back
Top