+ Reply to Thread
Results 1 to 5 of 5

Sort combobox items alphabetically

Hybrid View

  1. #1
    Registered User
    Join Date
    06-26-2011
    Location
    Dubai
    MS-Off Ver
    Excel 2007
    Posts
    22

    Sort combobox items alphabetically

    Hey..have a dynamic combo box which updates its list automatically..however i wanted to have the items arranged in an alphabetical order when the user sees the drop down list. I don't want the original entries to be disturbed as they are part of a excel database and the entries are in a chronological order. Any ideas how I can achieve this? Thanks.
    Last edited by VishalGupta; 07-06-2011 at 01:13 AM.

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

    Re: Sort combobox items alphabetically

    Where is the combobox & how are you loading it?
    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
    06-26-2011
    Location
    Dubai
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Sort combobox items alphabetically

    It's in a user form i hv made for this purpose..there is a drop down list of id numbers..i want these to be shown alphabetically in the combobox

    Sheets("Log Sheet").Activate
    Range("O2").Select
    Do Until Selection.Value = ""
    
    With IssueID
    .AddItem Selection.Value
    End With
    Selection.Offset(1, 0).Select
    Loop

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

    Re: Sort combobox items alphabetically

    I would copy & paste to a temporary location, sort then load from the new list

  5. #5
    Registered User
    Join Date
    06-26-2011
    Location
    Dubai
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Sort combobox items alphabetically

    thnks..will try this approach..

+ 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