OlkCommandButton.Accelerator property (Outlook)

Returns or sets a String value that represents the accelerator or hot key for the control. Read/write.

Syntax

expression. Accelerator

expression A variable that represents an OlkCommandButton object.

Remarks

The default value is an empty string, meaning there is no hot key. If the property is set with a string of more than one character, the value will be truncated to the first character.

You cannot use digits in an accelerator.

See also

OlkCommandButton Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.