+ Reply to Thread
Results 1 to 13 of 13

Userform : how to get combobx names in Ascending order

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Userform : how to get combobx names in Ascending order

    hello
    Userform : how to get combobx names in Ascending order
    thanx

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Userform : how to get combobx names in Ascending order

    How are you populating the combobox? If it's from a range, you can just sort the range.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Userform : how to get combobx names in Ascending order

    yes
    it's form range. but i can't sort because range has formulas

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Userform : how to get combobx names in Ascending order

    How are you loading the combobox - using List, AddItem or RowSource?

  5. #5
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Userform : how to get combobx names in Ascending order

    hello romperstomper

    RowSource

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Userform : how to get combobx names in Ascending order

    Then your only options are to sort the range or change the population method. Of course, if you are using RowSource so that you can use ColumnHeads, you'd have to use a workaround since ColumnHeads only works with RowSource.

  7. #7
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Userform : how to get combobx names in Ascending order

    plz describe the solution

    how to use rowsource and columnheads

  8. #8
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Userform : how to get combobx names in Ascending order

    I think you misunderstood. If you are using RowSource, you have to sort the data range. There is no alternative.
    If you don't use RowSource, you can sort the data before adding it to the combobox, but you can't have column headers.

  9. #9
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Userform : how to get combobx names in Ascending order

    romperstomper

    My English and excel vba knowledge is weak

    so plz u tell what method i use in combobox to sort the data

  10. #10
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Userform : how to get combobx names in Ascending order

    Here's a very basic BubbleSort method:

    Please Login or Register  to view this content.

  11. #11
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Userform : how to get combobx names in Ascending order

    Thanx for reply
    now tell me what changing should i do in my userfrom

  12. #12
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Userform : how to get combobx names in Ascending order

    I'm not psychic.

  13. #13
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,080

    Re: Userform : how to get combobx names in Ascending order

    ok thanx a lot for help
    i will do

    will add u reputaion surely

+ 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] Sort in ascending order
    By Glenn Kennedy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-07-2013, 08:11 AM
  2. [SOLVED] Generate "ascending order no" for columns of data that are not in order
    By abreichenbach in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-20-2013, 02:22 AM
  3. sort ascending order
    By iscar_marius in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 02-11-2009, 11:00 AM
  4. ascending order
    By cbian in forum Excel General
    Replies: 2
    Last Post: 06-05-2008, 07:26 AM
  5. Ascending order and IF
    By kookinuttz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-07-2007, 08:27 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