0

I have values in Column B of Sheet #1. I want to copy those values to a different sheet, then remove the duplicate values.

I have the following code:

tSheet.Range("B2:B" & tSheet.Range("B" & tSheet.Rows.Count).End(xlUp).Row).Copy
tWb.Sheets("HELPER").Cells(1, 1).PasteSpecial Paste:=xlPasteValues
Range("A1:A10").RemoveDuplicates

It is not removing the duplicates.

Community
  • 1
  • 1

1 Answers1

1

EDIT#1:

Replace:

Range("A1:A10").RemoveDuplicates

with:

tWb.Sheets("HELPER").Range("A1:A10").RemoveDuplicates Columns:=1, Header:=xlNo
Gary's Student
  • 95,722
  • 10
  • 59
  • 99