Word Macro opening Mail Merge Template

R

Ron H

I am attempting to upgrade a Word Macro from Word 2000 that runs as a
forground task scheduled via windows scheduler on a unattended server.
During the running of the macro it opens a template built for mail merge that
latter dynamically attaches to a CSV data source.

The issue I am having is that under 2003 opening the templete stops with
"Opening this document will run the following SQL command:" goes on to list
the CSV data source file path which I believe is a request to attach the data
source.

I need to suppress this request message. Currently the template is being
opened with "Documents.Add Template:=Tmplt, newtemplate:=True,
documenttype:=0"
The current folder contains the template named in the variable "Tmplt".

Suggestions?
 
D

Doug Robbins - Word MVP

See the following Knowledge Base article:

"Opening This Will Run the Following SQL Command" Message When You Open a
Word Document - 825765 at:

http://support.microsoft.com?kbid=825765 test


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
B

Brian F. King

See the following Knowledge Base article:

"Opening This Will Run the Following SQLCommand" Message When You Open a
Word Document - 825765 at:

http://support.microsoft.com?kbid=825765 test

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

That solution does not appear to work for "Limited" accounts.
[The registry entry works fine for "Administrator" accounts, though.]
Any additional thoughts/suggestions?
 

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