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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top