+ Reply to Thread
Results 1 to 3 of 3

Determine which item in a list box was chosen?

  1. #1
    Forum Contributor
    Join Date
    04-01-2010
    Location
    USA
    MS-Off Ver
    Office 2021
    Posts
    185

    Determine which item in a list box was chosen?

    How do you determine how far down the list in a combo box the user went before selecting an item? For example, if there are 10 account numbers when the user clicks on the list box and he selected the 3rd one down, is there any way to record the 3?

    Also, my userform works fine if the user selects any of the items in the combo box besides the 1st one, because I have it set to sub Processs_AfterUpdate

    When I try to have it execute using other events it either executes before I have a chance to select anything else, or it won't execute at all (like with the After_Update)
    Last edited by max3732; 04-13-2010 at 06:58 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Determine which item in a list box was chosen?

    See Help for the ListIndex Property (Forms)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Determine which item in a list box was chosen?

    Remember ListIndex starts at zero,so
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1