View - Events - Autorun

Select Autorun from the View - Events menu to save your document-level event code with a specific document so that it runs any time that document is opened.