Joining data from 4 tabs in a workbook

paxodiva

New Member
Joined
Feb 2, 2011
Messages
46
Hello All

Hope someone can help me with a problem i have.

There are 4 data tabs in my excel workbook and i would like to have the ability to amalgamate all the data into 1 sheet by running a macro
as there may be times when i will have added lines to the bottom of one of the sheets.

Could someone please tell me what the easiest way to do this

all help would be much appreciated
Diva
:confused:
 
thank you ever so much for your help you have helped me no end
from a very happy person

thank you again
:)
 
Upvote 0

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hello everyone
I need a small change made to the code that VOG supplied that copies all spreadsheets into 1 and i dont know what to do.

Instead of copying the entire sheets into 1 i only want columns A to L copied from all the sheets into 1 sheet.

would be very grateful if someone can help me
 
Upvote 0
Hi

Change

Code:
Set CopyRng = sh.UsedRange

to

Code:
Set CopyRng = Intersect(sh.Columns("A:L"), sh.UsedRange).Select
 
Upvote 0
thanks for that it worked that time however it is wiping out my VLOOKUPS that I have on the same page in Columns M to Q

Do you have any Ideas how this can not be removed
 
Upvote 0
I don't understand why that would happen. Do you mean on the source sheet or the destination sheet.
 
Upvote 0
I don't understand why that would happen since it is only copying and pasting columns A:L.
 
Upvote 0
In response to your PM try

Code:
Sub Atest()
Dim LR As Long, c As Range
LR = Range("A" & Rows.Count).End(xlUp).Row
If LR < 2 Then Exit Sub
Columns("A").Insert
For Each c In Range("B1:C" & LR)
    With c
        If .Column = 2 Then Range("A" & .Row).Value = Left(.Value, 2)
        .Value = Replace(Right(.Value, Len(.Value) - 7), "-1-1", "")
    End With
Next c
Columns("D").Delete
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,598
Messages
6,179,818
Members
452,946
Latest member
JoseDavid

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