Copy new workbook vba

Excelnoobisme

Board Regular
Joined
Nov 19, 2010
Messages
128
Hi, i have a workbook which i use for my working everyday. At the end of the day i need to save a copy of my work.

I have predefine cell A1 in Name manager using (=text(today(),"DD-MMM") as the name of the new workbook. i.e. the copy i will save today will be name 22-Apr.

There are 5 worksheets in the working workbook and all must saved.
i need to save to C:/program files/ and cell A1.

Can some1 help me. i would like the copy to be still in .xlsm format
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Are you trying to save copies as 5 different workbooks (1 for ea sheet) or just one copy of the wb in its entirety?
 
Upvote 0
Hi there,

I'm currently in 2003 w/convertor. SaveCopyAs seems to be giving me fits, as I can give it the correct extension, the icon shows up correctly, but the file is glitched. Here's .SaveAs
Rich (BB code):
Sub exa2()
    ThisWorkbook.SaveAs Filename:=ThisWorkbook.Path & "\" & Sheet1.Cells(1).Text, FileFormat:=52
End Sub

I would try .SaveCopyAs though, as this will leave you running in the original wb.
 
Upvote 0
is it possible for me to clear certain data for the savecopyas copy? like i save exactly the same copies except that for cell A5:E10 i want to clearcontent.
 
Upvote 0
Hopefully someone w/2007 or higher will stop in. With .SaveCopyAs, you could then open the copy, ditch the vals you wanted, save and close.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,713
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top