Hi Thomas... or Wayne?
Seriously, think about it... What would be the point of having security
settings if you could write a macro that could bypass those settings? Word
security is flimsy as it is... let's not make it worse!
The only thing you can do along those lines is change the security settings
temporarily once you have code already running. For that, the initial
setting must allow you to run your code in the first place. So, for example,
you could have a template that called on another tenplate, but that would
disable macros before opening that second template so that its Document_New
routines would not be executed... Anyway, this is how I understand it!
You could also look in to signing your macros with a digital signature,
either with selfcert.exe or with third party certification, such as
Verisign. This way, your macro could run on a machine that accepts your
signature, even if its security is set to high.
Cheers!
--
_______________________________________
Jean-Guy Marcil
(e-mail address removed)
Thomas Dietrich said:
That's close to what I want:
I want my macro to force Word to lower security settings and allow macros,
and then once the document is closed it should raise the security settings
again....using the macro!