Table of contents
TOC
Collapse the table of content
Expand the table of content

CommandBars.DisableCustomize Property (Office)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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

Other resources

CommandBars Object Members

© 2018 Microsoft