We are unable to fetch VBA macros in .docm files using Aspose.Word in our .NET application.
In our current implementation for other files, we check Aspose.Words.Document.HasMacros property, and if the value is “true”, we read the vba project from the package part of content type “application/vnd.ms-office.vbaProject”.
In case of .docm, Aspose.Words returns “false” when trying to get the Doc.HasMacros value, and the package part we seek cannot be found.