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

Latest commit

 

History

History
65 lines (34 loc) · 1.5 KB

commandbarcontrol-parameter-property-office.md

File metadata and controls

65 lines (34 loc) · 1.5 KB
title ms.prod api_name ms.assetid ms.date
CommandBarControl.Parameter Property (Office)
office
Office.CommandBarControl.Parameter
6a1fd988-0c3f-3945-307f-e4e647c3642c
06/08/2017

CommandBarControl.Parameter Property (Office)

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

expression A variable that represents a CommandBarControl object.

Return Value

String

Remarks

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, it can be used to send information to Visual Basic procedures, or it can be used to hold information about the control (similar to a second Tag property value).

Example

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" 
    .SetFocus 
End With

See also

Concepts

CommandBarControl Object

Other resources

CommandBarControl Object Members