Question : vba collection contains
Answered by : vastemonde
' Vba collection contains
Public Function ExistsInCollection(col As Collection, pKey As Variant) As Boolean On Error GoTo err ExistsInCollection = True IsObject (col.Item(pKey)) Exit Function
err: ExistsInCollection = False
End Function
Source : | Last Update : Mon, 01 Feb 21