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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Separate Worksheets 1

Status
Not open for further replies.

genuineblonde

Technical User
Jun 8, 2001
30
US
I have a worksheet file with 68 sheets. Can anyone suggest an automated way to write each worksheet to a separate file named the same as the worksheet.
 
Hi,
Heres a way...
Code:
Sub SaveEachSheet()
    For Each Worksheet In Worksheets
        Worksheet.Copy
        With ActiveWorkbook
            .SaveAs ActiveSheet.Name & ".xls"
            .Close
        End With
   Next
End Sub
Hope this helps :) Skip,
metzgsk@voughtaircraft.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top