April 2006
Beginner
1114 pages
98h 16m
English
commandbar.Delete( )
Deletes a command bar. You can’t delete built-in command bars. Before creating a new command bar, it is a good idea to use Delete to make sure a command bar doesn’t already exist, as shown here:
Sub DeleteContextMenu( )
' Ignore error if command bar doesn't already exist.
On Error Resume Next
Application.CommandBars("ContextMenu1").Delete
On Error GoTo 0
End SubRead now
Unlock full access