ActionDisableAction
DescriptionEnables and disables actions for the doAction function.
Examples

With Cube1
  Call .setValue("DisableAction", "SwapXY")
  .VisibleButtonSwapXY = False;
  Call .doAction("SwapXY")                   'Nothing happens
  Call .setValue("EnableAction", "SwapXY")
 .VisibleButtonSwapXY = True;
  Call .DoAction("SwapXY")                   'X & Y axes swap
End With

Example ExplanationThis example says: Click on cell (1, 1) of data grid. Choose ascending sort for the SortFlag variable.
See also
DoActionexecutes a cube action
Notes