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

CommandBar.Position Property (Office)

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

Gets or sets a MsoBarPosition constant representing the position of a command bar. 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."


expression. Position

expression A variable that represents a CommandBar object.


This example steps through the collection of command bars, docking the custom command bars at the bottom of the application window and docking the built-in command bars at the top of the window.

For Each bar In CommandBars 
    If bar.Visible = True Then 
        If bar.BuiltIn Then 
            bar.Position = msoBarTop 
            bar.Position = msoBarBottom 
        End If 
    End If 

See also


CommandBar Object

Other resources

CommandBar Object Members

© 2018 Microsoft