Save worksheets to different files

G

Guest

I have a workbook with individual worksheets. I need to save each worksheet
into a different file name so that they can be distributed to different
people. Each file represents the results for one indivual. I have to send
the worksheets to the propoer manager. Is there a way to
automatically/easily save these as seperate excel files?

thanks
 
G

Gord Dibben

Tere

Sub Make_New_Books()
Dim w As Worksheet
Application.Calculation = xlCalculationManual
Application.ScreenUpdating = False
Application.DisplayAlerts = False
For Each w In ActiveWorkbook.Worksheets
w.Copy
ActiveWorkbook.SaveAs FileName:=ThisWorkbook.Path & "\" & w.Name
ActiveWorkbook.Close
Next w
Application.DisplayAlerts = True
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
End Sub


Gord Dibben Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top