Hi,
I have a multiple column list view within a userform, which acts as results box for a search facility that searches the database for relevant records to the search.
What I want is..
When a certain record is clicked in the list view, for it to look at column 2 in the listview and open the hyperlink.
I have a peice of code but it will not work,
Currently The listview selected item when i debug is the first columns value instead of the second columns value.
Your help is much appreciated
Thanks
L.
I have a multiple column list view within a userform, which acts as results box for a search facility that searches the database for relevant records to the search.
What I want is..
When a certain record is clicked in the list view, for it to look at column 2 in the listview and open the hyperlink.
I have a peice of code but it will not work,
Code:
Private Sub ListView1_Click()
Dim c As Range
Set c = Columns(2).find(ListView1.SelectedItem, lookat:=xlWhole).Offset(, 3)
ActiveWorkbook.FollowHyperlink c.Hyperlinks(1).Address, NewWindow:=True
End Sub
Currently The listview selected item when i debug is the first columns value instead of the second columns value.
Your help is much appreciated
Thanks
L.