Hi All,
I could get this code in google to assign unique values from a list to array. How can I edit this to specific range in a column of excel worksheet.
I want the unique items in that column to be assigned to this array. I tried assigning array_1=range("Ab2",range("ab2").end(xldown))
but it fails at "If UBound(Filter(Array_1, eleArr_1)) = 0 Then"
can any one help...
[VBA]
Sub Remove_All_Duplicated()
Dim Array_1
Array_1 = Array("pedro", "maria", "jose", "jesus", "pepe", "pepe", "jose")
Dim Array_2()
Dim eleArr_1, x
x = 0
For Each eleArr_1 In
Array_1
If UBound(Filter(Array_1, eleArr_1)) = 0
Then
ReDim Preserve
Array_2(x)
Array_2(x) =
eleArr_1
x = x +
1
End If
Next eleArr_1
End Sub
[/VBA]