Scripting and Documents

Hopefully a very quick question with an appropriately quick reply…

Is there a simple way to tie a script to a document so that the script automatically runs when the document is opened? eg like an auto_open macro.

I know there is the BusObj.spt route (this isn’t an option as it relates to the start-up of BusObj rather than a specific doc). Also, there are the OnStart,OnQuit,OnBeforeRefreshDocument etc subroutines but I can’t see one for, say, OnOpenDocument etc.

Please feel free to suggest RTFM but tell me what page 'cos I can’t find it!

Regards

Jonathan

Project Leader
Global Medical, Regulatory and Product Strategy (GMRPS) IS


Listserv Archives (BOB member since 2002-06-25)

Jonathan wrote:

Hopefully a very quick question with an appropriately quick reply… Is there a simple way to tie a script to a document so that the script automatically runs when the document is opened? eg like an auto_open macro.
I know there is the BusObj.spt route (this isn’t an option as it relates to the start-up of BusObj rather than a specific doc). Also, there are the OnStart,OnQuit,OnBeforeRefreshDocument etc subroutines but I can’t see one for, say, OnOpenDocument etc. Please feel free to suggest RTFM but tell me what page 'cos I can’t find it!


Listserv Archives (BOB member since 2002-06-25)