Thanks Thanks:  0
Likes Likes:  0
Results 1 to 4 of 4

Thread: Combobox rowsource sort

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Location
    John G
    Posts
    62
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    How can I sort the rowsource of combobox? Right now I am using a named range as rowsource. do I have to sort it prior to defining it or can I have it temporarily sorted for display purposes in my combobox?

    John

  2. #2
    MrExcel MVP Anne Troy's Avatar
    Join Date
    Feb 2002
    Location
    Westwood NJ
    Posts
    2,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Is it a real combobox or a data-validation list box?
    ~Anne Troy

  3. #3
    Board Regular
    Join Date
    Feb 2002
    Location
    John G
    Posts
    62
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    It is called out as a combobox but I guess, I am using it like a listbox. List values that are in a named range and take data from the column to the right of the displayed value.

  4. #4
    Rest in Peace
    Join Date
    Feb 2002
    Posts
    1,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I have some sample code here that adds a sorted list to a listBox (or Combobox) and also removes duplicates.

    http://www.ozgrid.com/VBA/UserForms.htm

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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