We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Assign a macro to click event of a shape added to a worksheet

Hi there,

Is there a way to assign a macro to a click event for a shape added to a worksheet. We are trying to port some code over from using interop to using aspose.cells, so far I have not been able to see how to do this.

Below would be the interop way of doing it.

shape.OnAction = “doSomeAction”;



I am afraid, Aspose.Cells does not support to access, create, manipulate, assign macros to drawing objects or even execute macros in the workbook, it only supports to retain the macros/vba codes (if your template file has it already) and save as the file with it.

Thank you.