In Word, press Alt+F11 to display the Visual Basic Editor. On the View menu, click Project Explorer. In the Project Explorer window, click the folder labeled Normal. On the Insert menu, click Module. Double-click the Module1 that Word just created. Paste in the first macro in the article. Click Debug | Compile Normal. Then click the Save button. Close the Visual Basic Editor. Do the following to run the macro: Press Alt+F8. Click the macro name in the list of macros and click Run. That should hide the toolbar. If it still doesn't work, add the second macro (named AutoExec) in the same manner.
__________________
Stefan Blom
Microsoft Word MVP
Microsoft 365 apps for business
Windows 11 Professional
|