Skip to content

Instantly share code, notes, and snippets.

@KirillPashkov
Created January 11, 2018 06:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KirillPashkov/200cc11d598c7bedba7d8591ec049e3d to your computer and use it in GitHub Desktop.
Save KirillPashkov/200cc11d598c7bedba7d8591ec049e3d to your computer and use it in GitHub Desktop.
Function FindInArray(InputArray,LookupValue)
Dim Found: Found = False
For i = 0 To UBound(InputArray)
If InputArray(i) = LookupValue Then
Found = True
Exit For
End If
Next
FindInArray = Found
End Function
Dim TestArray: TestArray = Array("63","33","50","13","38","66","14","03")
FindInArray(TestArray, "33")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment