A really basic question I m afraid:
How do I use a value as any part of an array?
Sub test()
Dim x As Variant
x = Array(1, 2, 3, 8, 9, 10, 1585)
If InStr(Cells(1,1).Value, x) Then
MsgBox "OK"
End If
End Sub
In this code I am trying to check if the cell contains any value from the array