Currently, I would use something like this with Range, Cells or the like, in different ways, in the same basic way.
Range("A1", Range("A1").End(xlDown)).AdvancedFilter Action:=xlFilterCopy, _ CopyToRange:=Range("IV1"), Unique:=True Dim myArr as Variant myArr = Range("IV1", Range("IV1").End(xlDown)) Columns("IV").Delete
Is there a way to directly load these unique values ββinto any type of object in VBA without having to copy to another location?
source share