//create a new workbook var workbook = new GrapeCity.Documents.Excel.Workbook(); // Document Solutions for Excel supports open xlsm file workbook.Open("macros.xlsm"); // Macros can be preserved after saving workbook.Save("macros-exported.xlsm");
' Create a new Workbook Dim workbook As New Workbook 'Document Solutions for Excel supports open xlsm file workbook.Open("macros.xlsm") 'Macros can be preserved after saving workbook.Save("macros-exported.xlsm")