Macros to copy the data from multiple sheet

Suresh Manriaj

New Member
Joined
Feb 18, 2019
Messages
2
Hi,

I have excel with multiple tabs, but I need the data from J4 to S4 from each tab by creating new tab in the same excel file (consolidated).

Plese help me.

Regards,
Suresh
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
So you want to create a new Worksheet named "New" and then:
I need the data from J4 to S4 of every sheet in the workbook and put it where on sheet named New?


 
Last edited:
Upvote 0
So, assuming the main sheet is called "Master"
AND
you want the data pasted in col J to S in the "master"...try this

Code:
Sub MM1()
Dim sh As Worksheet
    For Each sh In Worksheets
        If sh.Name <> "Master" Then
            sh.Range("J4:S4").Copy Sheets("Master").Range("J" & Cells(Rows.Count, "J").End(xlUp).Row + 1)
        End If
    Next
End Sub
 
Last edited:
Upvote 0
Hi Michale,


Thank you for your quick reply.

Let me explain from the start.
Help 1.
I have folder with multiple excel files like (mentionedbelow). These file I need to combine into one excel file called as"Consolidated".
900491_IU_KFZ-H-XL_1981(002).xlsx
900491_IU_KFZ-H-XL_1982.xlsx
900491_IU_KFZ-H-XL_1991.xlsx and many

Help 2.
Once all the files tabs been into single"Consolidated" excel sheet. From that "Consolidated" fileeach tab J4 to S4 specific data need to pulled into new tab in the same"Consolidated" excel file.
 
Upvote 0

Forum statistics

Threads
1,196,409
Messages
6,015,104
Members
441,870
Latest member
kojack

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