How to remove AutoOpen macro

A

Aline

Hi!
Using VBA I try to develop a procedure that will loop a
folder and will remove the AutoOpen macro from every file.
Due to an error in a template every file built from that
template contains the macro.

Thank for any help!
Aline
 
J

Jonathan West

Aline said:
Hi!
Using VBA I try to develop a procedure that will loop a
folder and will remove the AutoOpen macro from every file.
Due to an error in a template every file built from that
template contains the macro.

Are you sure that each document contains the macro? If the template is
available, then whenever a document based on the template is opened, the
AutoOpen mano in the template will run.

Try just deleting the AutoOpen macro in the template, and see if that cures
the problem.
 

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