We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Copy macro from another document

I have a template word document in which I merge content of another word document into it.
The content document contains macros, which are not copied using the NodeImporter.

Is there a way to copy the macros from the content document into the template document?

Hi Peter,

for your inquiry. I am afraid copying macros/VBA from one
document to another document is not supported at the moment. We will
consider providing an ability to Copy Macros from one document to
another. We have already logged this feature request in our bug tracking system as WORDSNET-7201. You will be notified via this forum thread once this feature is available.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-7201) have been fixed in this Aspose.Words for .NET 20.8 update and this Aspose.Words for Java 20.8 update.