SaveAs with special conditions

G

Guest

Hello,
I want to save a copy of a master file (which I call template.xls, not.xlt)
that contains a macro, command button and cell caption (in cell C3); however,
I do not want the copy to include the macro, command button or caption. Is
there a way in VB to accomplish this? Thank you. Andy
 
G

Guest

I've copied a file sans macro by copying the appropriate worksheet(s) to a
new workbook and saving the copy. You may need to explicitly delete the
button from the copied sheet before saving.
--Bruce
 
D

Dave Peterson

Chip Pearson shows how to remove code from a workbook at:
http://www.cpearson.com/excel/vbe.htm

But you may want to just copy the cells and paste special values (& formats).

Or even set up a separate template that you can just paste special|values (have
the formats already done).
 

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