View Single Post
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Doug Robbins - Word MVP on news.microsoft.com Doug Robbins - Word MVP on news.microsoft.com is offline
external usenet poster
 
Posts: 407
Default No macros, but still prompted to enable them

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

"Horatio J. Bilge, Jr." wrote in
message ...
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