CommandEnabled Event
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

CommandEnabled Event

Office 2003

Occurs when the the specified Microsoft Office Web Component command is enabled.

Private Sub object_CommandEnabled (ByVal Command As Variant, ByVal Enabled As ByRef)

object    A ChartSpace , PivotTable , or Spreadsheet object.

Command Required. The command that has been executed.

Enabled Required. Set the Value property of this object to True to disable the command.


The OCCommandID, ChartCommandIDEnum, PivotCommandId, and SpreadsheetCommandId constants contain lists of the supported commands for each Web component.

© 2016 Microsoft