Name.ShortcutKey property (Excel)
Returns or sets the shortcut key for a name defined as a custom Microsoft Excel 4.0 macro command. Read/write String.
Syntax
expression.ShortcutKey
expression A variable that represents a Name object.
Example
This example sets the shortcut key for name one in the active workbook. The example should be run on a workbook in which name one refers to a Microsoft Excel 4.0 command macro.
ActiveWorkbook.Names(1).ShortcutKey = "K"
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.