Security error code

T

TRM

I would like to trap the macro security message when set to high. Where can
I find the error number for this message so that I can trap it?

THANKS!
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?VFJN?=,
I would like to trap the macro security message when set to high. Where can
I find the error number for this message so that I can trap it?
This isn't an error message. It's an application message. And you certainly
can't trap it because your code won't be running...

Now, if you're telling me that
1. You're automating Word 2002 or 2003
2. You're automating opening documents from code that's already running

Then I can point you at the Application.AutomationSecurity property that will
let you control how documents are opened and closed from within your code
without displaying the alert.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
T

TRM

Yes, that would be correct, thank you.



Cindy M -WordMVP- said:
Hi =?Utf-8?B?VFJN?=,

This isn't an error message. It's an application message. And you certainly
can't trap it because your code won't be running...

Now, if you're telling me that
1. You're automating Word 2002 or 2003
2. You're automating opening documents from code that's already running

Then I can point you at the Application.AutomationSecurity property that will
let you control how documents are opened and closed from within your code
without displaying the alert.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)


This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
Top