Refer to Listbox second column

S

shiro

Dear All,
Can we refer to listbox second column,and then transfer
the second column value on the listbox click even.

And Also how to open an excel workbook files through a
cmd button.I usually using hyperlink address but it doesn't
seem cute.

Thank's
 
K

Klatuu

combo and list box columns can be addressed using the columns collection.

Me.MyTextBox = Me.MyListBox.Column(1)

Note that the columns start numbering at 0, so the second column is (1).

You can open an excel workbook with the Shell command. See details in VBA
Help.
 

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

Top