Excel doc keeps making a backup after macro is ran

J

jd316632

I have a macro that just updates formatting in an excel document (can
link if needed but hoping its a simple fix), but once I click save it
creates a backup copy without the format changes in the same directory.
Every time I open the excel doc and make a change it creates another
backup copy in the same directory. How do I stop this?
 
J

JLGWhiz

Does it have a file extension of .xlt? If so, the template cannot be
changed, so it will always have the old file plus a file with any changes.
 
J

jd316632

Yes it does have a .xlt extension, thank you for the information, I
guess I'll just keep deleting them then!
 
J

JLGWhiz

Usually, when a template is saved, it is done with the SaveAs method so it
can be given a different name. If you use, SaveAs and give the file a new
name, the problem should go away.
 

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