Returns or sets information about the command bar control, such as data that can be used as an argument in procedures, or information that identifies the control.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)

Usage
Dim commandBarControl1 As CommandBarControl
Dim returnValue As String
returnValue = commandBarControl1.Tag
Dim sampleValue As String
commandBarControl1.Tag = sampleValue

Syntax
property String^ Tag{
String^ get();
Void set(String^);
}
public System.String get_Tag();
public void set_Tag(System.String);
function get Tag() : String;
function set Tag(String);

Remarks
To avoid duplicate calls of the same class when triggered with events, define the Tag property unique to the events.

Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms

See Also