ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Create copy of spreadsheet (https://www.excelbanter.com/excel-programming/302277-create-copy-spreadsheet.html)

Les[_6_]

Create copy of spreadsheet
 
After I finish updating my spreadsheet, I would like to
have a way to automatically make a copy of it, and place
it on a different path on our lan.

Can I do something like this with a macro? How would I go
about doing it?

Thanks much.

Harald Staff

Create copy of spreadsheet
 
Hi

If you by Spreadsheet mean the whole workbook, use the macro command
SaveCopyAs. If you mean one of the sheets in the workbook to a separate
single file, then copy the sheet to a new workbook, save it and close it.
record a macro doing it for code.

HTH. Best wishes Harald

"Les" skrev i melding
...
After I finish updating my spreadsheet, I would like to
have a way to automatically make a copy of it, and place
it on a different path on our lan.

Can I do something like this with a macro? How would I go
about doing it?

Thanks much.




Papou

Create copy of spreadsheet
 
Hi Les
WorkSheets("YourSheet").Copy
ActiveworkBook.SaveAs "F:\Folder\Name.xls"

HTH
Cordially
Pascal

"Les" a écrit dans le message de
...
After I finish updating my spreadsheet, I would like to
have a way to automatically make a copy of it, and place
it on a different path on our lan.

Can I do something like this with a macro? How would I go
about doing it?

Thanks much.




Les[_6_]

Create copy of spreadsheet
 
Harald and Pascal,

Thank you both for your quick responses. I got it done
now.

-----Original Message-----
Hi Les
WorkSheets("YourSheet").Copy
ActiveworkBook.SaveAs "F:\Folder\Name.xls"

HTH
Cordially
Pascal

"Les" a écrit dans

le message de
...
After I finish updating my spreadsheet, I would like to
have a way to automatically make a copy of it, and place
it on a different path on our lan.

Can I do something like this with a macro? How would I

go
about doing it?

Thanks much.



.



All times are GMT +1. The time now is 07:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com