MacroOptions Method Example

This example adds a shortcut key for the DoRand macro.

Application.MacroOptions Macro:="DoRand", _
    HasShortcutKey:=True, ShortcutKey:="Z"