Description

Get or set the VBA code executed when a button is pressed or a menu selected.

Property type

A String value.  

Syntax

object.OnAction [= value]

The OnAction Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McCommandBar.
valueA String value.

Remarks

OnAction is usually set in the .mnu file.