MsoBarProtection enumeration (Office)

Specifies how a command bar is protected from user customization.

Name Value Description
msoBarNoChangeDock 16 Docking setting cannot be changed.
msoBarNoChangeVisible 8 Command bar cannot be hidden.
msoBarNoCustomize 1 Command bar cannot be customized.
msoBarNoHorizontalDock 64 Command bar cannot be docked to the top or bottom.
msoBarNoMove 4 Command bar cannot be moved.
msoBarNoProtection 0 All aspects of the command bar can be customized by user.
msoBarNoResize 2 Command bar cannot be resized.
msoBarNoVerticalDock 32 Command bar cannot be docked to the left or right.

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.