Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
No macros, but still prompted to enable them
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 |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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 |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
No macros, but still prompted to enable them
Thank you for the solution - I just wish I knew how the macro got there in
the first place. ~ Horatio "Doug Robbins - Word MVP on news.microsof" wrote: 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 |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Word & Enable Macros and Disable macros | Microsoft Word Help | |||
enable macros | Microsoft Word Help | |||
How can I re-enable my Macros? | Microsoft Word Help | |||
How do I enable macros? | Microsoft Word Help | |||
How do I enable macros? | Microsoft Word Help |