Pilot5000
New Member
I have sheet (sheet3) with columns of data , each week the number of columns with data change but all the time start in the same column "E" , looking for help with macro that will take the data from column "E" and copy it to another sheet(sheet 1) at the 2 rows after the last row with data in column "A", and keeping loop until last columns wit data in sheet 3 . now I have macro that I work with but from doing some reading I understand 1) that this is not the best way to do that 2) my problems as you can see from my macro is that when it copy it take 2 columns at the time and copy them
Thank you or any help in advance
M.S
Code:
Sub COPY_S1()
Application.ScreenUpdating = False
Range("E2:E" & Range("E" & Rows.Count).End(xlUp).Row).Select
Range(ActiveCell, ActiveCell.End(xlDown).Offset(0, 1)).Select
Selection.Copy Destination:=Worksheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Offset(3)
Range("G2:G" & Range("G" & Rows.Count).End(xlUp).Row).Select
Range(ActiveCell, ActiveCell.End(xlDown).Offset(0, 1)).Select
Selection.Copy Destination:=Worksheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Offset(3)
Range("I2:I" & Range("I" & Rows.Count).End(xlUp).Row).Select
Range(ActiveCell, ActiveCell.End(xlDown).Offset(0, 1)).Select
Selection.Copy Destination:=Worksheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Offset(3)
Range("K2:K" & Range("K" & Rows.Count).End(xlUp).Row).Select
Range(ActiveCell, ActiveCell.End(xlDown).Offset(0, 1)).Select
Selection.Copy Destination:=Worksheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Offset(3)
Range("M2:M" & Range("M" & Rows.Count).End(xlUp).Row).Select
Range(ActiveCell, ActiveCell.End(xlDown).Offset(0, 1)).Select
Selection.Copy Destination:=Worksheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Offset(3)
Range("O2:O" & Range("O" & Rows.Count).End(xlUp).Row).Select
Range(ActiveCell, ActiveCell.End(xlDown).Offset(0, 1)).Select
Selection.Copy Destination:=Worksheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Offset(3)
Range("S2:S" & Range("S" & Rows.Count).End(xlUp).Row).Select
Range(ActiveCell, ActiveCell.End(xlDown).Offset(0, 1)).Select
Selection.Copy Destination:=Worksheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Offset(3)
Range("U2:U" & Range("U" & Rows.Count).End(xlUp).Row).Select
Range(ActiveCell, ActiveCell.End(xlDown).Offset(0, 1)).Select
Selection.Copy Destination:=Worksheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Offset(3)
Range("W2:W" & Range("W" & Rows.Count).End(xlUp).Row).Select
Range(ActiveCell, ActiveCell.End(xlDown).Offset(0, 1)).Select
Selection.Copy Destination:=Worksheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Offset(3)
Application.ScreenUpdating = True
End Sub
M.S