# GetShortcutTextByEnum
{: .no_toc }

Returns the localised display text for a built-in keyboard shortcut, given its enumeration ID.

Syntax: **GetShortcutTextByEnum(** *ShortcutEnumId* **)** **As String**

*ShortcutEnumId*
: *required* **Long**. The numeric identifier of the shortcut, as used by the **Shortcut** property of menu and toolbar items.

The returned string is the user-facing label for the shortcut --- e.g. `"Ctrl+S"`, `"Ctrl+Shift+P"`, `"F5"` --- formatted in the system UI language. Returns an empty string for an unknown identifier.

### Common Errors

| Error | When |
|---|---|
| [94 (`&H5E`)](/Reference/Run-time-Errors.md#94), *Invalid use of Null* | *ShortcutEnumId* is **Null** |

### See Also

- [RuntimeCreateGetMessageHook](/tB/Modules/HiddenModule/RuntimeCreateGetMessageHook.md) function
