Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
47 lines (23 loc) · 1.36 KB

commandbarbutton-priority-property-office.md

File metadata and controls

47 lines (23 loc) · 1.36 KB
title ms.prod api_name ms.assetid ms.date
CommandBarButton.Priority Property (Office)
office
Office.CommandBarButton.Priority
72599580-16d2-20b3-05ad-b454afbba6ef
06/08/2017

CommandBarButton.Priority Property (Office)

Gets or sets the priority of a CommandBarButton control. A control's priority determines whether the control can be dropped from a docked command bar if the command bar controls can't fit in a single row. Controls that can't fit in a single row drop off command bars from right to left. Read/write.

Note The use of CommandBars in some Microsoft Office applications has been superseded by the new ribbon component of the Microsoft Office Fluent user interface. For more information, search Help for the keyword "ribbon."

Syntax

expression. Priority

expression A variable that represents a CommandBarButton object.

Remarks

Valid priority numbers are 0 (zero) through 7 and the default value is 3. A priority of 1 means that the control cannot be dropped from a toolbar. Other priority values are ignored.

The Priority property is not used by command bar controls that are menu items.

See also

Concepts

CommandBarButton Object

Other resources

CommandBarButton Object Members