List boxes

  • Thread starter Thread starter Lionel Fridjhon
  • Start date Start date
L

Lionel Fridjhon

I have a list box named lstRecipes with 11 columns.
The lstRecipes.Value contains only the contents of the
first column.
How can I get the whole array of ll columns of the
selected row, and paste them into a row in a spreadsheet?

Lionel
 
Hi Lionel,

You can access them through the List property. For example,

With ListBox1
MsgBox .List(1, 0)
MsgBox .List(1, 1)
End With

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

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