Live SpreadsheetGear API Samples
Workbook Saving Excel 2007-2025 Macro-Enabled Open XML (*.xlsm)
This sample demonstrates saving to the Macro Enabled Excel 2007-2025 Open XML (*.xlsm) file format using the FileFormat.OpenXMLWorkbookMacroEnabled enumeration option. Note SpreadsheetGear does not support modifying or executing VBA Macros. Existing Macros will be preserved when opened and saved through SpreadsheetGear.
Run This Sample
Download File
Download an Excel Open XML Macro-Enabled Workbook (*.xlsm) file with the results of this sample.