Document.removeMacros method. Removes all macros (the VBA project) as well as toolbars and command customizations from the document....Document.removeMacros method. Removes all macros (the VBA project) as well as toolbars and command customizations from the document.