Bring in data from specific tabs to one data tab

mnadams

New Member
Joined
Oct 4, 2011
Messages
3
Hello,
Any assistance anyone can provide would be great.

I have a workbook in which I need data from 5 specific tabs pulled in to one data tab within the same workbook.

The data destination tab is named "data"
and the tabs that I need data from are named:

1. NA
2. EC
3. ME
4. VJ
5. TK

After I get all data in the "data" tab, I plan to create a pivot table based on the data. I have tried several attempts at the code but I am running in to errors when trying to call out specific tabs versus pulling in data from "all" tabs.

Thank you in advance!
 
Try

Code:
Sub atest()
Dim ws As Worksheet, j As Long
Sheets("Summary").UsedRange.Offset(1).ClearContents
For Each ws In Sheets(Array("Jun", "Jul"))
    j = j + 1
    ws.UsedRange.Copy Destination:=Sheets("Summary").Cells(Rows.Count, j).End(xlUp).Offset(1)
Next ws
End Sub
 
Upvote 0

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.
That did the trick .
Thanks again for your patience and assistance.

Pedro
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,789
Members
452,942
Latest member
VijayNewtoExcel

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