Hello,
I have tried to write some VBA to copy and paste rows of data based on a condition. So far I have only been able to copy the first cell. It would be appreciated if someone could point out where I am going wrong so that I know in future.
Many thanks in advance.
I have tried to write some VBA to copy and paste rows of data based on a condition. So far I have only been able to copy the first cell. It would be appreciated if someone could point out where I am going wrong so that I know in future.
Code:
Sub CopytoOtherSht()
Range("A1:A" & Cells(Rows.Count, 1).End(xlUp).Row).AutoFilter 1, "WISBECH ROADWAYS CUSTOMERS"
Range("A2:A" & Cells(Rows.Count, 1).End(xlUp).Row).Copy Sheets(2).Range("A" & Rows.Count).End(xlUp)(2)
Range("A1:A" & Cells(Rows.Count, 1).End(xlUp).Row).AutoFilter
End Sub
Many thanks in advance.