hello,
Is there a way to have a macro code to copy an array start from column B47 to the last B row has the data and paste unique value to column O24 to O41? If there is a formula for it, that would be awesome as well.
Thanks
hello,
Is there a way to have a macro code to copy an array start from column B47 to the last B row has the data and paste unique value to column O24 to O41? If there is a formula for it, that would be awesome as well.
Thanks
How about:
![]()
Sub CaptureUniques() Dim col As Collection Set col = New Collection Dim rB As Range, rO As Range Set rB = Range(Range("B47"), Range("B47").End(xlDown)) Set rO = Range("O24") For Each r In rB On Error Resume Next col.Add r.Value, CStr(r.Value) If Err.Number = 0 Then rO.Value = r.Value Set rO = rO.Offset(1, 0) End If Next r End Sub
Gary's Student
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks