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 ?
I explore some articles in your Forum and find the answer.
Because XlsIO does not support Macro, i already found other solution for my problem.
Thank you so much for the update.
We are glad to know that the above reported issue has been resolved at your side. Also, please get back to us if you have any queries.
You can create an AddIn for the macro and invoke the AddIn function from XlsIO. A brief explanation about the usage of Excel Add-in in XlsIO is available in following UG link.
UG documentation link: http://help.syncfusion.com/file-formats/xlsio/working-with-formulas#add-in-functions
IListObject table = worksheet.ListObjects.Create("Table", worksheet["A1:C7"]);
IAutoFilters filters = table.AutoFilters;
IAutoFilter filter = filters;
table.ShowAutoFilter = false;