Question : Microsoft Word Macro Automatic Enable

I there guys, I have a work document with some database stuff going inside. I had a website which links to these documents.

Whenever person opens it , it opens in a Word document, but whenever you click on it, it ask the question below

This document contains macros. Some Macros may contains harmuful virues.
If you are sure this document are from some trusted source then click Yes. If you are not sure and want to prevent any macro running, clikc No

and then I have three options YES, NO or CANCEL.

What I want to do is that I don't want word to ask for this question and automatically enables the macros to yes whenever it opens.

I don't want to go into settings of my Microsoft word to do this as This is being used by 100 people and I don't want everyone to go into there settings and stuff. I want something in VBA to accomplish this.

Is there any way to overcome this message box and make it automatically Enable whenever someone opens the document.


Thanks in Advance


Mohit

Answer : Microsoft Word Macro Automatic Enable

In Word 97, this will do it:

Write a macro containing this:


With Options
     .VirusProtection = False
End With

HTH
Joanne
Random Solutions  
 
programming4us programming4us