How to insert VBA Macros using .NET

Hi,

Wanted to know if we can inject Macro to a word document using Aspose.Words?

Thanks,

Hari

Hi Hari,


Thanks for your inquiry. I am afraid, there is no way to create or modify macros using Aspose.Words; however, macros are preserved upon open and save with Aspose.Words. We apologize for any inconvenience. If we can help you with anything else, please feel free to ask.

Best regards,

@fmrpatel

With the latest version of Aspose.Words for .NET 20.5, you can insert VBA macros into document. Please read the following article about working with VBA macros. .
Working with VBA Macros