Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

New Post: Does ClosedXML/Open XML SDK work with xlsm files?

$
0
0
I need to create new XLSM file and modify existing file. I don't need to add new VBA code.

I've used the sample code and the resulting file is actually an XLSX file.

I've opened an issue:
https://closedxml.codeplex.com/workitem/9245

Is there anything I am doing wrong?
var workbook = new XLWorkbook();
var worksheet = workbook.Worksheets.Add("Sample Sheet");
worksheet.Cell("A1").Value = "Hello World!";
workbook.SaveAs("HelloWorld.xlsm");

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>