Opening will run SQL Warning in Word 2003

N

NevilleT

Just installed Word 2003. Whenever I open Word, I get a
warning message
"Opening this will run the following SQL command"
Select * from MrgFile.txt"
Data from your database will be placed in the document. Do
you want to continue?"
Have looked up Knowledge Base Article 825765, but it
doesn't cast much light on the subject. Has anyone else
had the warning? Is it something with normal.dot?
 
B

Beth Melton

Hi Neville,

It sounds like there is a macro attempting to run each time you start
Word. The macro could be stored in your Normal.dot or a global
template/add-in.

- Go to Tools/Macro/Macros and make sure "Macros in" reflects "All
active templates and documents".
- See if there are any macros named "AutoExec"
- Select the macro and see if the Edit or Delete command is available
- If it is then either Delete the macro or click "Edit" and place an
"X" in front of the macro name to prevent it from automatically
running until you can determine what the macro is actually doing

If delete is unavailable then chances are it is stored in a global
template. A global template is a template located in your Startup
folder that is automatically loaded when Word starts. You can find a
list of these under Tools/Templates and Add-Ins.

To determine which template, in the Macros dialog box, narrow down the
list of macros using "Macros in" at the bottom until you have
determined what template the macro is stored in.

Once you locate the template then either open the template and
delete/rename the macro or move the template out of the folder so it
will no longer be used.

Global templates are typically stored in your Word\Startup folder or
Office\Startup. Your Word\Startup folder can be determined by going to
Tools/Options/File Locations to verify this location. The
Office\Startup folder will be located in the installation path for
Office.

--
Please post all follow-up questions to the newsgroup. Requests for
assistance by email can not be acknowledged.

~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP

Word FAQ: http://mvps.org/word
TechTrax eZine: http://mousetrax.com/techtrax/
MVP FAQ site: http://mvps.org/
 

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