Fires when the enabled state of a command changes.
Syntax
Private Sub object_CommandStateChange( _
ByVal Command As Long, _
ByVal Enable As Boolean)
Parameters
- object
- Object expression that resolves to the
objects in the Applies To list.
- Command
-
A CommandStateChangeConstants enumeration value that specifies the command that changed.
- Enable
-
A Boolean value that specifies the enabled state.
false- Command is disabled.
true- Command is enabled.
Error Codes
No return value.
Applies To