CommandBarControl.Tag Property
Gets or sets information about the CommandBarControl, such as data that can be used as an argument in procedures, or information that identifies the control. Read/write.
Note
|
|---|
| The use of CommandBars in some Microsoft Office applications has been superseded by the new Ribbon user interface. For more information, search help for the keyword "Ribbon." |
Syntax
expression.Tag
expression A variable that represents a CommandBarControl object.
Return Value
String
Example
To avoid duplicate calls of the same class when tiggered with events, define the Tag property unique to the events. The following example demonstrates this concept with two modules.
| Visual Basic for Applications |
|---|
|
| Visual Basic for Applications |
|---|
|
Note