Share via


DisableCustomize Property

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

expression.DisableCustomize

*expression   * Required. An expression that returns one of the objects in the Applies To list.

Example

The following example toggles the DisableCustomize property.

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

Applies to | CommandBars Collection Object