Combining Question

pourcho

New Member
Joined
Jul 27, 2014
Messages
2
I have looked through the existing post and can not find exactly what I need. It maybe out there I just can't find it.

My problem:

I have 26 Excel Reports that come out everyday I save them to a folder on my Desktop and change the name to the same thing everyday "Report(1), Report(2)" etc. What I need to do is copy Sheet 4 out of each Report to One "Combine Report" I don't want to combine them on a Master sheet but in a master Workbook.

I need a quick way to do this because Now I am opening all the workbooks and Copy and Pasting that one sheet to a file called "CombineReports.xlsx"

Any help with the code would be greatly appreciated.

Thank You in Advance,
Abbye
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
when you save these 26 reports into one folder are they dated? you can take the time to create a Master Workbook where each sheet is a link from the other reports like this. ='[Report 1.xlsx]Sheet4'!A1, put this in master workbook sheet 1 then drag down an across for as much as you need. turn off all the 0's under the advanced tab if they are showing and then repeat for sheet 2 / report 2, sheet 3 / report 3.. but if any data changes or is not avail the master will not work anymore because it is just a link to he data.
 
Upvote 0
Thank you so much for your help.

I did find what I was looking for.


Sub CopySheets4()
Dim wkb As Workbook
Dim sWksName As String


For Each wkb In Workbooks
If wkb.Name <> ThisWorkbook.Name Then
wkb.Worksheets(4).Copy _
Before:=ThisWorkbook.Sheets(1)
End If
Next
Set wkb = Nothing
End Sub


It works for what I needed.

Thanks,
Abbye
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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