+ Reply to Thread
Results 1 to 3 of 3

how to get the next item value based on the selected item in userform listbox ?

  1. #1
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    how to get the next item value based on the selected item in userform listbox ?

    I have a simple userform :
    Please Login or Register  to view this content.
    Say, the listbox show items :
    AAA
    BBB
    CCC

    If the user click BBB, I need to get the next item value which is CCC.

    So far I've tried :
    Please Login or Register  to view this content.
    Now, if I click BBB in the listbox, the MsgBox i shows 1 and the MsgBox i + 1 shows 2.

    How do I make the code to have a MsgBox shows "CCC" ?

    Any kind of respond would be greatly appreciated.
    Thank you in advanced.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: how to get the next item value based on the selected item in userform listbox ?

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: how to get the next item value based on the selected item in userform listbox ?

    Thank you very much davesexcel.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Userform Listbox - Display selected item in cell
    By Neuk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-22-2018, 03:39 PM
  2. [SOLVED] Populate controls based on selected multicolumn Listbox item
    By terriertrip in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-13-2017, 04:30 PM
  3. How do I display information from a selected item in a listbox on a userform
    By interceptor91 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-03-2016, 11:57 PM
  4. Userform listbox - Getting Sheet row of selected item
    By johnny_p in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-14-2015, 05:00 AM
  5. Update Rows in Database based on Combobox selected item on Userform. Problem .
    By jmarriott in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-09-2013, 01:08 PM
  6. [SOLVED] listindex=0 when first item selected in a multiselect listbox on a userform?
    By mcdermott2 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 04-17-2013, 12:38 PM
  7. Keep selected ListBox item highlighted when reopening userform
    By berlini in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-22-2011, 08:38 AM

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