Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

list items that are selected in a listbox....

Posted on 2005-04-28
3
Medium Priority
?
149 Views
Last Modified: 2010-05-02
I'm trying the following code to list the data presented in a list box.  But I don't get the actual text that I'm searching for...
It's a list box of paths to various drawings!  When I run it I get various numbers...  There are no columns associated with this if I'm correct.

For n = 0 To frmList.lstPaths.ListCount - 1

If frmList.lstPaths.Selected(n) = True Then myItem = frmList.lstPaths.ItemData(n)

MsgBox myItem

next n
0
Comment
Question by:stephenlecomptejr
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
JR2003 earned 2000 total points
ID: 13889133
   Dim n As Long
    Dim myItem As String
    For n = 0 To frmList.lstPaths.ListCount - 1
        If frmList.lstPaths.Selected(n) = True Then
            myItem = frmList.lstPaths.List(n)
            MsgBox myItem
        End If
    Next n
0
 
LVL 1

Author Comment

by:stephenlecomptejr
ID: 13889211
thank you for asking such a ridiculous question.
0
 
LVL 1

Author Comment

by:stephenlecomptejr
ID: 13889694
I meant thank your answering such a ridiculous question...
wasn't sure...since was not working because of another glitch...
kinda stressed out. ***

Thanks again.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month13 days, 13 hours left to enroll

580 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