If you want to enable or disable Trust access to Visual Basic Project in Office apps, such as Word, Excel, PowerPoint, etc., you can do so with the help of the in-built option, Local Group Policy ...
You can automate specific tasks by repurposing Word’s built-in commands. It requires a bit of VBA, but it’s super easy. Here’s how. The article, How to use VBA to update fields in a Word document ...