No macros, but still prompted to enable them

  • Thread starter Horatio J. Bilge, Jr.
  • Start date
H

Horatio J. Bilge, Jr.

I have a file that prompts me to enable macros when I open it, even though
there are no macros in the file.

It was created with a template, and the template had an AutoNew() sub, but
the last line of the AutoNew() sub was supposed to remove the macros:
ActiveDocument.AttachedTemplate = NormalTemplate

Now when I open the file, I am prompted to enable macros. In the visual
basic editor, all that appears is "ThisDocument" with no code, and "Reference
to Normal."

Where is the macro warning coming from?

~ Horatio
 
D

Doug Robbins - Word MVP on news.microsoft.com

Save the file in .rtf format, close it, then re-open it and re-save it in
..doc format. The way in which you describe it as having been created would
not have caused this problem.

--
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, originally posted via msnews.microsoft.com
 
H

Horatio J. Bilge, Jr.

Thank you for the solution - I just wish I knew how the macro got there in
the first place.

~ Horatio
 

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