0
如何查找使用items.find方法设置的联系人项目的索引?找到物品后,我希望能够移动到下一个物品,但我的代码将我发送到集合中的第一个物品。我的计划的一个浓缩版本低于...使用Items.find查找Item.index
dim ColItms as items
dim CI as contactItem
Dim CIindex as integer
set CI= ColItms.find("[CompanyName] = ""IBM""")
CIindex = CI.???? ''''' This shows what I'm wanting to do, but don't know how
' now advance to next item in collection
set ci = ColItms.item(CIindex +1) ' i think this would work if I could find CIindex
set ci = ColItms.GetNext ' this fails as it returns the 1st item in the collection
现在一切似乎工作是遍历集合中的每个项目,看它是否找到联系人匹配,