Solved

Simple Excel 2010 MultiSelect Listbox retrieval

Posted on 2013-11-18
2
291 Views
Last Modified: 2013-11-18
See attached.
When an item is clicked in the multiselect listbox the code should
first show the # of items in the list (which it does fine)
then show true/false indicating if the 1st item was selected - instead it returns an error "Unable to get the selected propery of the listbox"
Any idea - I'm sure it's something silly I'm overlooking.
Again I'm using Excel 2010
thx


Sub ListBox1_Change()
With Worksheets("Sheet1").ListBoxes("List Box 1")
    MsgBox (.ListCount)
    MsgBox (.Selected(0))
End With
End Sub
Sample-MultiSelect.xlsx
0
Comment
Question by:endurance
2 Comments
 
LVL 9

Accepted Solution

by:
Valliappan AN earned 330 total points
ID: 39657699
Try .Selected(1)
0
 

Author Comment

by:endurance
ID: 39657706
d'oh - thanks!!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question