Created
June 23, 2015 22:56
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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