0

want to copy paste the values, correction required in below code or alternative required as i need to copy 3 columns from sheet east to sheet uniques (new to coding)

Sub uniques_sheet()

Dim unqrow As Long, lastrow As Long, i As Long

lastrow = Sheets("East").Cells(Rows.Count, 1).End(xlUp).Row

For i = 1 To lastrow
    If Sheets("East").Cells(i, 1) <> "" Then
    Sheets("East").Range(Cells(i, 1), Cells(i, 2)).Copy
    Sheets("Uniques").Activate
    unqrow = Sheets("Uniques").Cells(Rows.Count, 1).End(xlUp).Offset(1, 0)
    ActiveSheet.Paste Destination:=Sheets("Uniques").Range(Cells(unqrow, 1), Cells(unqrow, 2))
    Sheets("East").Activate
    End If
Next i

Application.CutCopyMode = False


End Sub
Akshay
  • 31
  • 3

0 Answers0