PDA

View Full Version : ListView .finditem syntax



lifeson
04-29-2009, 12:03 AM
Hi folks
I have a listview control (not a listbox) on a user form and I want a button to allow me to find and highlight an item in the listview

There is a method for finditem but I dont know what variables to use

idx = lvw.finditem(sz As String, [Where],[Index],[fPatial]) as listItem

What do I put in where to find asan example
BLR1234 from the first column in the listview control

Once found this should highlight the item

With lvw
.ListItems.Item(idx)
.EnsureVisible
.selected = TRUE
End with