DEV Community

IronSoftware
IronSoftware

Posted on • Originally published at ironsoftware.com

2 1

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay