Programming with Reflection
RemoveToolbar method
Syntax object.RemoveToolbar Name
Deletes the specified toolbar. For example, the following command removes the Standard toolbar:
Session.RemoveToolbar "Standard"
If the specified toolbar does not exist, an error is returned.
Name Argument type: String
The name of the toolbar you want to delete. Toolbar names are not case sensitive. The default toolbar names are:
Standard
File Transfer
Visual Basic
Setup
Use NewToolbar to create a new toolbar.
Use ShowToolbar to hide individual toolbars without deleting them.
Use RemoveAllToolbars to delete all toolbars.