Worksheet Listbox selected item?

W

Webtechie

Hello,

I've created a listbox (lstImportFiles) on my worksheet (admin).

I have the range and the cell link (b2).

The value of B2 is 3. Now how do I get the value of the selected list item
for the worksheet listbox? I didn't quite get that by searching this forum.
Maybe I missed it, but I didn't see threads on retrieving the selected item
in a Worksheet listbox.

Thanks.
 
J

JLGWhiz

P.S. I assumed a single column, single select list box. If multicolumn,
single select, the code would return the value of the bound column. If
multiselect the code fails.
 
W

Webtechie

Hey,

That didn't work:

I tried:


Sheets("DataValues").Select
Range("j3").Value = Sheets("adminview").Shapes("lstImportFiles").Value

I got:


Run time error '438'
Object doesn't support this property or method.
 

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