Copy Data from multiple tabs.

stooly

New Member
Joined
Jul 16, 2008
Messages
16
Hi guys. Sorry this has been asked before, but I couldn't get it to work with the info on the other post and as it was a bit dated, I didn't want to bump it.

So I am a total noob with VB, but I'm assuming this can be done. If I have many tabs, is there an a quick way to put all that data onto one tab? Data range is columns A to D. Different amount of lines on each tab. No headers.

Many thanks in advance!
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hello Stooly,

You could try this:-
Code:
Sub CopyStuff()

      Dim ws As Worksheet

Application.ScreenUpdating = False

For Each ws In Worksheets
       If ws.Name <> "Sheet1" Then   'Change "Sheet1" to your destination sheet name.
       ws.UsedRange.Copy Sheet1.Range("A" & Rows.Count).End(3)(2)
       End If
Next ws

Application.CutCopyMode = False
Application.ScreenUpdating = True

End Sub

I hope that this helps.

Cheerio,
vcoolio.
 
Upvote 0
You're welcome Stooly. I'm glad that I was able to help.

Cheerio,
vcoolio.
 
Upvote 0

Forum statistics

Threads
1,216,222
Messages
6,129,586
Members
449,520
Latest member
TBFrieds

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