1. Put it the template attached to the document, and execute via the
AutoOpen macro. This is the preferred method.
But do not clutter the Normal template. Put the macro in an app specific
template.
2. Put the code in the ThisDocument module's document_open event.