I think I understand -- this uses a Boolean function to see if a value is in the array or not.
True = it's in the array, and False = it's not
Option Explicit
Public arrSC_TempA(1 To 10) As String
Sub drv()
Call demo_init
MsgBox InArray(arrSC_TempA, "E")
MsgBox InArray(arrSC_TempA, "Z")
MsgBox InArray(arrSC_TempA, "A")
MsgBox InArray(arrSC_TempA, "J")
End Sub
Sub demo_init()
arrSC_TempA(1) = "A"
arrSC_TempA(2) = "B"
arrSC_TempA(3) = "C"
arrSC_TempA(4) = "D"
arrSC_TempA(5) = "E"
arrSC_TempA(6) = "F"
arrSC_TempA(7) = "G"
arrSC_TempA(8) = "H"
arrSC_TempA(9) = "I"
arrSC_TempA(10) = "J"
End Sub
Function InArray(A As Variant, V As Variant) As Boolean
On Error Resume Next
InArray = Not IsError(Application.WorksheetFunction.Match(V, A, 0))
On Error GoTo 0
End Function