ActionControl Property
Applies To
CommandBars collection object.
Description
Returns the CommandBarControl object whose OnAction property is set to the running procedure. If the running procedure was not initiated by a command bar control, this property returns Nothing. Read-only.
Example
This example disables the command bar control that initiated the running procedure while a series of statements runs, and then enables the control.
Set theCtrl = CommandBars.ActionControl
theCtrl.Enabled = False
'insert OnAction process here
theCtrl.Enabled = True