0

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.

pangular
  • 699
  • 7
  • 27
  • 1
    It 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 Answers1

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