MsoBarProtection Enumeration (Office)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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 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.

Show: