Hi All (My Gurus)
I have a code that separates Unique and distinct text values from a range("C25:C3000") and copies the new range to Column II2 of my worksheet....
The code works fine.......only change I would like is that the copied range should be in Alphabetic order ie A to Z
Please help
I have a code that separates Unique and distinct text values from a range("C25:C3000") and copies the new range to Column II2 of my worksheet....
The code works fine.......only change I would like is that the copied range should be in Alphabetic order ie A to Z
Please help
VBA Code:
Dim d As Object, c As Variant, i As Long, lr As Long
Set d = CreateObject("Scripting.Dictionary")
lr = Cells(Rows.Count, 1).End(xlUp).Row
c = Range("C25:C" & lr)
For i = 1 To UBound(c, 1)
d(c(i, 1)) = 1
Next i
Range("II2").Resize(d.Count) = Application.Transpose(d.keys)