Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save sheet to new file exclude other worksheets

Status
Not open for further replies.

johnaregan

Programmer
Mar 13, 2001
87
Hi
I have an excel file with 2 worksheet, the 1st is updated with info based on a database, I have managed to copy just the data to the 2nd sheet leaving out any formulas etc.
Now I want to be able to save JUST the 2nd sorksheet to a new file. Any suggestions?

Thanks in advance
John
 
Surprisingly enough, this line of code copies a worksheet and places it in a new workbook

Sheets("Sheetname").copy

'then save to generate a name

activeworkbook.saveas name:="Pathandnamegohere"

HTH Rgds
~Geoff~
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top