+ Reply to Thread
Results 1 to 3 of 3

Reversing List in a Combo Box

Hybrid View

bluepill Reversing List in a Combo Box 12-21-2007, 06:39 AM
royUK The ListIndex property refers... 12-21-2007, 06:43 AM
bluepill I think I thought that there... 12-21-2007, 07:18 AM
  1. #1
    Registered User
    Join Date
    12-04-2007
    Posts
    9

    Reversing List in a Combo Box

    I have been asked to change a the list order in a combo box on a form, but the the list index must remain the same.

    E.g if my list in the combo box shows:

    001
    002
    003

    and user selects "003" the list index is 2.

    this needs to be reveresed to show:

    003
    002
    001

    but again if the user select "003" the list index should still be 2 and not 0.

    An example spreadsheet is attached.

    Does anybody know how to change the viewable list but preserve the original list index. (Note: I do not want to resort the original list on the worksheet)

    Regards
    BP
    Attached Files Attached Files

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    The ListIndex property refers to the position in the control so I don't think you can make it refer to a different position.
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    12-04-2007
    Posts
    9
    I think I thought that there was probably a way to use the IDList as an array when initialising the user form.

    Then apply some method to the array to reverse the order, and use the array as the list to display in the combo box.

    When the the selection is made, some formula is used against the array to calculate the original listindex of the ID List.

    But I dont know how to do this.

    BP

+ 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