Bewerken

Delen via


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

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.