property Items.FindItemData (UserData as Variant, [StartIndex as Variant]) as HITEM

Finds the item giving its data.

TypeDescription
UserData as Variant A Variant expression that indicates the value being searched.
StartIndex as Variant A long expression that indicates the index of the item where the searching starts.
HITEM A long expression that indicates the handle of the item found.

Use the FindItemData property to search for an item giving its extra-data. Use the ItemData property to associate an extra data to an item. Use the FindItem property to locate an item given its caption. Use the FindPath property to search for an item given its path.