Name

commandbar.Protection [= msoBarProtection]

Synopsis

Sets or returns the type of customizations allowed for a command bar. Can be one of these settings:

msoBarNoChangeDock

msoBarNoChangeVisible

msoBarNoCustomize

msoBarNoHorizontalDock

msoBarNoMove

msoBarNoProtection (default)

msoBarNoResize

msoBarNoVerticalDock

Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.