DEV Community

IronSoftware
IronSoftware

Posted on • Originally published at ironsoftware.com

XLSX to XLSM with Macros

IronXL allows developers to load, save and export XSLM files - which are macro enabled spreadsheets in the Open XML / XLSX format.

C#:


using IronXL;
WorkBook workbook = WorkBook.Load("test.xlsx");

//This is how you can export workbook to .xlsm format
workbook.SaveAs("test.xlsm");
Enter fullscreen mode Exit fullscreen mode

VB:

Imports IronXL
Private workbook As WorkBook = WorkBook.Load("test.xlsx")

'This is how you can export workbook to .xlsm format
workbook.SaveAs("test.xlsm")
Enter fullscreen mode Exit fullscreen mode

Top comments (0)