Hi Scott,
I am doing a mailmerge programatically from VB.NET to Word2000. Mailmerge
goes fine but the macro's and autotext are disabled. I think since I am
opening the template document programatically word is disabling the macro.
Is there a way to tell word to not do this?
All versions of Word have a macro security with three settings (four in
2003): "High", "Medium" and "Low". The first disables macros without asking;
the second dislays a prompt; the third lets all macros execute.
Word 2002 introduced the AutomationSecurity property for the application
object that lets you open documents using automation with the setting you
prefer. Nothing like this is available in Word 2000, however.
Either the user has to set the macro security on the machine to "Low" (if
there's good anti-virus software this shouldn't be a problem) or you have to
get the macros out of the main merge documents.
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
![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)