Copy entire file using VBA
Wouldn't the simplest way be to simple SAVEAS...
OldName ="MyCurrentFile.xls"
NewName = "MyNewFile.xls"
DIM wb as Workbook
set wb = workbooks.open(OldName)
wb.SaveAs NewName
This leaves the workboook open, but renamed
--
Patrick Molloy
Microsoft Excel MVP
---------------------------------
I Feel Great!
---------------------------------
"Rob" wrote in message
...
Excel 2000
I'm using the following code Sheets(1).Copy to copy a sheet from an opened
file to a new workbook, however I need to copy all the sheets to a new
workbook not just the first.
Is this possible and if so, can someone please provide sample code.
Thanks, Rob
|