Free Support Forum - aspose.com

VBA Macros

Will Aspose.Words run my auto-start VBA macros?

Hi,


Thanks for your inquiry. No, there is no way to run macros at the moment using Aspose.Words. However, we will consider providing limited support of macros such as reading a macros from document sometime in the future. Sorry for inconvenience.

Best Regards,

I understand but that's really disappointing. Does this apply even to macros written to execute when the document is opened or just to ones that need to be run via a prompt, such as a Ribbon button or a keyboard sequence?

Thanks,

Jason

Hi,


Thanks for your inquiry. I will just clarify, there is no way to create or modify macros using Aspose.Words. However, macros (written to execute when the document is opened or that need to be run via a prompt, such as a Ribbon button or a keyboard sequence) are preserved upon open and save, therefore you can load documents with macros into Aspose.Words’ DOM and perform mail merge etc and send them on to the end user. The macros in the generated document will still be there.

If you have any other issues, please feel free to ask.

Best Regards,