Disable Macro Security in a Template

T

Thomas Dietrich

Hello
I've created a company template in word with a macro to allow users to print their document to a specific network printer. The problem is that by default macro security is set to high, and I have to manually lower that setting for each user that will use this template. Not a good scenario..
My question is whether or not there is an easy way to lower security settings in Word across the network, or whether there is some code I can insert into the template itself telling Word to lower the settings for that document, and then raise them again once the user finishes working with the template
I've seen another post about using the ORK and Group Policy to accomplish this, which I'm looking into. We run an Active Directory domain with Win2000 Servers and Win98, Win2K, WinXP clients using Office 2000, Office 2000 Pro, Office XP, Office XP Pro, and I run Office 2003 on my machine
Any help is appreciated

Thanks
Thomas Dietrich
 
T

Tom Winter

Thomas Dietrich said:
Hello,
I've created a company template in word with a macro to allow users to
print their document to a specific network printer. The problem is that by
default macro security is set to high, and I have to manually lower that
setting for each user that will use this template. Not a good scenario...
My question is whether or not there is an easy way to lower security
settings in Word across the network, or whether there is some code I can
insert into the template itself telling Word to lower the settings for that
document, and then raise them again once the user finishes working with the
template?
I've seen another post about using the ORK and Group Policy to
accomplish this, which I'm looking into. We run an Active Directory domain
with Win2000 Servers and Win98, Win2K, WinXP clients using Office 2000,
Office 2000 Pro, Office XP, Office XP Pro, and I run Office 2003 on my
machine.
Any help is appreciated!

Thanks,
Thomas Dietrich

You need to sign your template. Here are some articles that should help:

OFF: Macros and Add-Ins Do Not Run When Security Is Set to High
http://support.microsoft.com/default.aspx?scid=kb;en-us;285514&Product=wrd

OFF2000: Overview of Digital Certificates
http://support.microsoft.com/default.aspx?scid=kb;en-us;206637&Product=wrd

OFF2000: Using SelfCert to Create a Digital Certificate for VBA Projects
http://support.microsoft.com/default.aspx?scid=kb;en-us;217221&Product=wrd

-Tom
 
C

Charles Kenyon

If your template is in a trusted location (such as the Workgroup Templates
folder or the Word StartUp folder) it should run even with macro security
set to "very high." This assumes that the setting for trusted locations is
to trust those locations.

Otherwise, macro security that could be turned off by a macro running out of
compliance with security settings would not be much security. I assume that
in the corporate distribution kits there are ways to set security settings
for all computers on your network, but I doubt that you would want to lower
it in general just to use your template.

Your template sounds like a global template, in which case it should be
located in the user's Word startup menu.
--

Charles Kenyon

See the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

Thomas Dietrich said:
Hello,
I've created a company template in word with a macro to allow users to
print their document to a specific network printer. The problem is that by
default macro security is set to high, and I have to manually lower that
setting for each user that will use this template. Not a good scenario...
My question is whether or not there is an easy way to lower security
settings in Word across the network, or whether there is some code I can
insert into the template itself telling Word to lower the settings for that
document, and then raise them again once the user finishes working with the
template?
I've seen another post about using the ORK and Group Policy to
accomplish this, which I'm looking into. We run an Active Directory domain
with Win2000 Servers and Win98, Win2K, WinXP clients using Office 2000,
Office 2000 Pro, Office XP, Office XP Pro, and I run Office 2003 on my
machine.
 
M

Mark Tangard

Charles said:
If your template is in a trusted location (such as the Workgroup Templates
folder or the Word StartUp folder) it should run even with macro security
set to "very high."

Uhh, don't tell me there's a fourth level now, in Office 2003? Low,
Medium, High, Excruciating?

MT
 
T

Tom Winter

Mark Tangard said:
Uhh, don't tell me there's a fourth level now, in Office 2003? Low,
Medium, High, Excruciating?

MT

Yes, it's "Very High", which only allows code/macros in trusted locations,
such as Templates and Startup folders. If your stuff is not in those
locations, it won't be run, even if it's signed. (At least that's what the
dialog box says. I hadn't noticed before. Now I find that my COM Add-In
won't run in Word 2003 set to Very High security!)

-Tom
 

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