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

CommandBarPopup.Parameter Property (Office)

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

Gets or sets a string that an application can use to execute a command from a CommandBarPopup control. 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. Parameter

expression A variable that represents a CommandBarPopup object.

Return Value



If the specified parameter is set for a built-in control, the application can modify its default behavior if it can parse and use the new value. If the parameter is set for custom controls, you can use it to send information to Visual Basic procedures, or you can use it to hold information about the control (similar to a second Tag property value).


This example assigns a new parameter to a control and sets the focus to the new button.

Set myControl = CommandBars("Custom").Controls(4) 
With myControl 
    .Copy , 1 
    .Parameter = "2" 
End With

See also


CommandBarPopup Object

Other resources

CommandBarPopup Object Members

© 2018 Microsoft