Using XlsIO to Call Macro in Excel

Dear SupportTeam,

In my C# project, I use XlsIO to open an exsting Excel file with macro in it.

Will you please show me how to call an exsting macro in Excel file ?

Thanks


1 Reply 1 reply marked as answer

SK Shamini Kiruba Sobers Syncfusion Team September 10, 2020 09:17 AM UTC

Hi Nguyen, 

Greetings from Syncfusion support. 

Kindly look into the SOURCE tab of the following online demo link, which shows how to access and edit the existing macros. 

XlsIO doesn’t support to call macros within the code. Macros will run automatically when the file is opened. You can check whether the Excel workbook contains macro using HasMacros property and DisableMacrosStart property will help to disable loading of macros from the document. 

Kindly let us know if this helps. 

Regards, 
Shamini 


Marked as answer
Loader.
Up arrow icon