_CommandBarsEvents_Event.OnUpdate EventĀ
Occurs when any change is made to a command bar.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Usage
WithEvents _CommandBarsEvents_Event1 As _CommandBarsEvents_Event
Function _CommandBarsEvents_Event1_OnUpdate() As Void
Handles _CommandBarsEvents_Event1.OnUpdate
End Function
Syntax
Event OnUpdate As _CommandBarsEvents_OnUpdateEventHandler
event _CommandBarsEvents_OnUpdateEventHandler OnUpdate;
event _CommandBarsEvents_OnUpdateEventHandler^ OnUpdate;
void add_OnUpdate(_CommandBarsEvents_OnUpdateEventHandler handler);
void remove_OnUpdate(_CommandBarsEvents_OnUpdateEventHandler handler);
In JScript, you can handle the events defined by a class, but you cannot define your own.
Remarks
The OnUpdate event is recognized by the CommandBar object and all command bar controls. The event is triggered by any change to a command bar or command bar control or any change to the state of a command bar or command bar control. These changes can occur due to a text or cell selection, for example. Since a large number of OnUpdate events can occur during normal usage, developers should exercise caution when using this event. It is strongly recommended that this event be used primarily for checking that a custom command bar has been added or removed by a COMAddIn object.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
_CommandBarsEvents_Event Interface
Microsoft.Office.Core Namespace