split Excel file into multiple files

gpsurf

Board Regular
Joined
Feb 20, 2008
Messages
96
I was wondering if anyone can help me. I have a workbook that is created every month from FRX (reporting tool) and creates one excel file with 65 separate tabs. Each tab has a separate department’s budget. I need to break this file apart and save each tab as a separate file. It is very time consuming, so is there a way to automate this process? Just splitting the file apart would be a big time saver I can then just save the files in each of the budget folders. I have some VBA experience but not enough to write this code.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
<o:p></o:p>
Thanks<o:p></o:p>
GP<o:p></o:p>
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hello and welcome to MrExcel.

Try

Code:
Sub try()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
    ws.Copy
    With ActiveWorkbook
        .Save
        .Close False
     End With
Next ws
End Sub
 
Upvote 0
Thanks for the quick response! I will try your solutions and let you know how they work out.

GP
 
Upvote 0

Forum statistics

Threads
1,203,174
Messages
6,053,912
Members
444,694
Latest member
JacquiDaly

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top