Can anyone help find a fast solution for finding an Instr match for each cell in a range from an array please?
The code below indicates what I'm trying to do, but I know it currently won't search against each value in myArray.
How can I adjust the Instr formula to search against each value in the array?
Any advice on improvement for the look-up speed also very welcome.
Many thanks in advance.
The code below indicates what I'm trying to do, but I know it currently won't search against each value in myArray.
VBA Code:
myArray = UKP.Worksheets("lookup").Range("A1:A30").Value
If frmTest.RmBox.Value = True Then
For Each cel In Hyprange
If InStr(cel.Value, myArray) > 0 Then
cel.EntireRow.Delete
End If
Next
End If
How can I adjust the Instr formula to search against each value in the array?
Any advice on improvement for the look-up speed also very welcome.
Many thanks in advance.