This documentation is archived and is not being maintained.

_CommandBarButtonEvents_Event.Click Event 

Occurs when the user clicks a CommandBarButton object.

Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)

WithEvents _CommandBarButtonEvents_Event1 As _CommandBarButtonEvents_Event
Function _CommandBarButtonEvents_Event1_Click(Ctrl As CommandBarButton, _
	CancelDefault As Boolean) As Void
	Handles _CommandBarButtonEvents_Event1.Click
End Function

event _CommandBarButtonEvents_ClickEventHandler Click;
 void add_Click(_CommandBarButtonEvents_ClickEventHandler handler);
 void remove_Click(_CommandBarButtonEvents_ClickEventHandler handler);
In JScript, you can handle the events defined by a class, but you cannot define your own.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms