--------------------------------------------------
Excel-DNA is now registered on https://github.com/sponsors/Excel-DNA.
Your monthly contribution encourages further development and support.
--------------------------------------------------
To register a macro you would create a method that returns ‘void’ and is possibly annotated with an [ExcelCommand] attribute.
[ExcelCommand(ShortCut = "^h")] // Ctrl + h
public static void SayHello()
{
XlCall.Excel(XlCall.xlcAlert, "Hello World!");
}
That registers the macro with shortcut Ctrl + h and you can also bind it to a button on the workbook etc.
Even then, the Excel ‘Macro’ dialog (Alt+F8) does not list macros from add-ins – they’re considered private.
But you can type in the name, and then the ‘Run’ button will light up and you can press it:
-Govert
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/exceldna/3ad35215-6b05-4935-85ca-fd0391811a00n%40googlegroups.com.