List Box Commands

  • Thread starter Thread starter George
  • Start date Start date
G

George

I have a list box and the items in it are links to documents in my C-Drive I
want to open when I double click on them - question is how do you make that
happen ?

Thanks
 
Private Sub MyListbox_DblClick(Cancel As Integer)
Application.FollowHyperlink Me!MyListbox
End Sub

(replace "MyListbox" with the name of your listbox)

Note that this assumes that Multiselect is not enabled.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top