Page 1 of 1

Adding a macro to an XLSM package

PostPosted: Tue May 17, 2011 3:09 am
by Squ36
Hi Jason !

I'm currently trying to create a file with a macro included. I search around the web, and apparently it's impossible to add it using Open XML. They all suggested using a predefined template with the macro already included.

Re: Adding a macro to an XLSM package

PostPosted: Tue May 17, 2011 8:43 pm
by jason
Actually, you can add a macro to a package.

At least you can add one to a docx (I've done this with docx4j, and also with Microsoft's OpenXML SDK in C#), and I imagine xlsx is
much the same.

Gotta run...