This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.Synopsis | |
Used to hide VBA modules from the VBA editor in Microsoft Office documents/templates, but still have them contain executable code. | |
Script created by William Knowles. @william_knows | |
Technique originally found by Thegrideon Software: https://www.thegrideon.com/vba-internals.html | |
.Description | |
This cmdlet facilitates editing the Word/Excel documents/templates to remove references to VBA modules. | |
For the older compatibility formats you can edit the file directly with a hex editor and remove module references. | |
For the newer XML formats that use zip files, you need to unzip them, and edit the vbaProject.bin file. |