Adding a Keyboard Shortcut
You can register a shortcut key for your macro in your AutoOpen
.
<DnaLibrary Name="Test OnKey" Language="C#">
<)
public static void SayHello()
{
XlCall.Excel(XlCall.xlcAlert, "Hello there!");
}
}
]]>
</DnaLibrary>
This can also be done with the COM interface, using Application.OnKey
.