Hi all,
Im trying to piece together a Macro that will copy data from columns across multiple worksheets and paste into one column on a destination worksheet. It works for the first 1 but im struggling with the second and it just overwrites the cells copied from source1 sheet. - This is far as I've got as no point going anyfuther for the remaining 4 sheets if I cant get it to work.
Does anyone have any advice?
Thanks
Im trying to piece together a Macro that will copy data from columns across multiple worksheets and paste into one column on a destination worksheet. It works for the first 1 but im struggling with the second and it just overwrites the cells copied from source1 sheet. - This is far as I've got as no point going anyfuther for the remaining 4 sheets if I cant get it to work.
Does anyone have any advice?
Code:
Sub CopyRange()
Application.ScreenUpdating = True
Dim source1 As Worksheet
Dim source2 As Worksheet
Dim source3 As Worksheet
Dim source4 As Worksheet
Dim source5 As Worksheet
Dim source6 As Worksheet
Dim destination As Worksheet
Dim emptyColumn As Long
Set source1 = Sheets("JLL Elec")
Set source2 = Sheets("JLL Gas")
Set source3 = Sheets("JLL Water")
Set source4 = Sheets("L&G Elec")
Set source5 = Sheets("L&G Gas")
Set source6 = Sheets("L&G Water")
Set destination = Sheets("Tidy")
emptyRow = destination.Range("A65536").End(xlUp).Offset(1).Column
source1.Range("I:I").Copy destination.Cells(1, emptyRow)
source2.Range("I:I").Copy destination.Cells(1, emptyRow)
End Sub
Thanks