|DocumentRemoveMacros Method |
Removes all macros (the VBA project) as well as toolbars and command customizations from the document.
Aspose.Words (in Aspose.Words.dll) Version: 19.11
public void RemoveMacros()
member RemoveMacros : unit -> unit
By removing all macros from a document you can ensure the document contains no macro viruses.
Shows how to remove all macros from a document.
Document doc = new Document(MyDir + "Document.doc");