Skip to content

DeleteAll Method

Description

The DeleteAll method is used to delete all the command bars in the collection of CommandBars.

Syntax

Public Sub DeleteAll()

Remarks

The DeleteAll method should be called before loading a Command Bar layout from an XML or XCB file. This should be called when you want to load all toolbars, not just toolbars customized by the user. If DeleteAll is called before the update, the file being loaded must have had SaveOnlyCustomized = False and SerializeControls = True when created.

When a layout is loaded, the toolbars not present in the saved layout will not be deleted. The DeleteAll method allows you to delete all the toolbars before the layout is loaded.

Use AddMenuBar to re-add an active menu bar after using DeleteAll.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.