Auto Open Macros

L

Lenny

Is an 'auto open' macro also initiated by a double-click event?

I was wondering whether an auto open macro to re-protect a word form also
did the same when the user double clicks the form to 'open'. Does it cover
all the bases?
 
J

Jonathan West

Lenny said:
Is an 'auto open' macro also initiated by a double-click event?

I was wondering whether an auto open macro to re-protect a word form also
did the same when the user double clicks the form to 'open'. Does it
cover
all the bases?

AutoOpen will run irrespective of how you open the document provided that
all the following conditions are met

1. The code is in the document, or the code is in the attached template and
the template is accessible

2. The running of auto macros has not been disabled, either by security
settings, user action (holding down Shift while opening the document) or
code (WordBasic.DisableAutomacros 1 has not been run).

3. The document is being opened in Word itself, not in some other
application (e.g. Wordpad, the Word Viewer, Wordperfect etc)

4. You actually Open the document rather than creating a new document based
on it. (in this circumstance, AutoNew would run instead, provided auto macro
haven't been disabled because of one of the reasons described above)
 
L

Lenny

Jonathan: my thanks

Jonathan West said:
AutoOpen will run irrespective of how you open the document provided that
all the following conditions are met

1. The code is in the document, or the code is in the attached template and
the template is accessible

2. The running of auto macros has not been disabled, either by security
settings, user action (holding down Shift while opening the document) or
code (WordBasic.DisableAutomacros 1 has not been run).

3. The document is being opened in Word itself, not in some other
application (e.g. Wordpad, the Word Viewer, Wordperfect etc)

4. You actually Open the document rather than creating a new document based
on it. (in this circumstance, AutoNew would run instead, provided auto macro
haven't been disabled because of one of the reasons described above)


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
 

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