How do I enable calling a macro on a button click via the Aspose.Cells API? I couldn't find any documentation on it. "Guessing" approach didn't yield any result either.
Asked
Active
Viewed 632 times
0
-
1It is not possible with the current API. Please post on Aspose.Cells forums at http://www.aspose.com/community/forums/aspose.cells-product-family/19/showforum.aspx for details/confirmation. – Saqib Razzaq Jun 15 '15 at 09:41
1 Answers
0
Newer version support that:
http://www.aspose.com/docs/display/cellsnet/Assign+Macro+to+Form+Control
Basically, you set the "MacroName" property, like so:
button.MacroName = sheet.Name + ".HelloWorld";

mcalmeida
- 532
- 4
- 9