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.

Visual Basic for Applications
ActiveWorkbook.Names(1).ShortcutKey = "K"
Change the key used to call an Excel macro? Find out what the quick key is for an Excel4 macro? Set the shortcut key for a macro? shortcut shortcut key Shortcut Key Property Shortcut key? ShortcutKey ShortcutKey Property

See also: