Word thinks a document contains Macros

J

Jeff

I have a document created in Word 2003 and now edited in Word 2000

The document previously contained macros and the security warning appeared
each time the document was loaded.

I used the VBA macro editor to delete all the macros in the "This Document"
module and then saved the document. However, Word is still insisting the=at
the document contains macros and shows me the security dialog!!

I have searched for evidence of such macros and cannot find any!!
Where are they?
 
J

Jonathan West

Jeff said:
I have a document created in Word 2003 and now edited in Word 2000

The document previously contained macros and the security warning appeared
each time the document was loaded.

I used the VBA macro editor to delete all the macros in the "This
Document"
module and then saved the document. However, Word is still insisting
the=at
the document contains macros and shows me the security dialog!!

I have searched for evidence of such macros and cannot find any!!
Where are they?

They are probably gone, but the flag in the document indicating that the
macros are (or were) there has not been reset. This is a bug in Word 2000.

Save the document as an RTF file and then re-save it as a document. This
will clear the problem.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
 
J

Jeff

Thanks Jonathan

That worked fine with one caveat:
It's necessary to close the document after saving it as RTF.
Then reopen the RTF.

Not such a trivial difference in my case because actually I had over 40 such
documents. They all contained identical macros and we had decided to put
the macros in a template which was then attached to each document. The
reason we needed to do this was because Word 2000 crashed if more than two
of the documents were opened at the same time.

Jeff
 
J

Jonathan West

Jeff said:
Thanks Jonathan

That worked fine with one caveat:
It's necessary to close the document after saving it as RTF.
Then reopen the RTF.

Not such a trivial difference in my case because actually I had over 40
such
documents. They all contained identical macros and we had decided to put
the macros in a template which was then attached to each document. The
reason we needed to do this was because Word 2000 crashed if more than two
of the documents were opened at the same time.

Ah, sorry about that, I knew about that step but had forgotton to include
it.


--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.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