macro @ startup

T

TED MEDIN

Can we run a macro when we click on a document. We would like the macro tied
to the particular document when it is opened. TIA
 
H

Howard Kaikow

TED MEDIN said:
Can we run a macro when we click on a document. We would like the macro tied
to the particular document when it is opened. TIA


At least two ways.

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.
 
Top