Поделиться через


CommandBars.DisableCustomize Property (Office)

Is True if toolbar customization is disabled. Read/write.

Syntax

expression .DisableCustomize

expression A variable that represents a CommandBars object.

Example

The following example switches the DisableCustomize property on or off.

Sub ToggleCustomize() 
 With Application.CommandBars 
 If .DisableCustomize = True Then 
 .DisableCustomize = False 
 Else 
 .DisableCustomize = True 
 End If 
 End With 
End Sub

See Also

Concepts

CommandBars Object

CommandBars Object Members