Skip to content

Instantly share code, notes, and snippets.

@kissmygritts
Created June 23, 2015 22:56
Show Gist options
  • Save kissmygritts/bdab3a7441fa5c97377e to your computer and use it in GitHub Desktop.
Save kissmygritts/bdab3a7441fa5c97377e to your computer and use it in GitHub Desktop.
Checks if value is in a collection. True if in collection, False if not in collection
Function InCollection(ByVal ctl As String, col As Collection) As Boolean
For Each c In col
If c = ctl Then
InCollection = True
Exit Function
End If
Next c
InCollection = False
End Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment