Solved

Simple Excel 2010 MultiSelect Listbox retrieval

Posted on 2013-11-18
2
303 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

719 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