📜  vba 集合包含 - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:56.187000             🧑  作者: Mango

代码示例1
' 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