Me being lazy and don't wanting to loop, I took the following approach:
Static oClipBoard As Object
Dim vArray As Variant
If oClipBoard Is Nothing Then Set oClipBoard = CreateObject("new:{1C3B4210-F441-11CE-B9EA-00AA006B1A69}")
rng.Offset(0, 4).SpecialCells(xlCellTypeVisible).Copy
oClipBoard.GetFromClipboard
vArray = Split(oClipBoard.GetText, vbCrLf)
ReDim Preserve vArray(LBound(vArray) To UBound(vArray) - 1)
This perfectly well puts all the cells that I need into an array.
And
Sheets("ORDER").Range("A1:CH" & Sheets("ORDER").Range("E65536").End(xlUp).Row).AutoFilter Field:=5, Criteria1:=array(varray), Operator:=xlFilterValues
Sets the filter as expected.
Awesome, thanks for your help, guys!
Bookmarks