Effortlessly remove all macros, toolbars, and custom command settings from your VBA project with the Document RemoveMacros method for a cleaner Document.... Document doc = new Document ( MyDir + "Macro...That ( doc . HasMacros , Is . True ); Assert . That ( doc . VbaProject...