+ Reply to Thread
Results 1 to 5 of 5

VBA autosort

  1. #1
    Registered User
    Join Date
    12-02-2010
    Location
    Singapore, Singapore
    MS-Off Ver
    Excel 2007
    Posts
    12

    VBA autosort

    Hi I have a question regarding autosort under VBA coding.

    If let's say, I have a rows of data where one specific column categorised them under A, B, C, etc (for simplicity).

    How do I type a VBA code where in the case:
    If row i and column 1 = "A", then all of these A category will auto-sort themselves in ascending order?

    Many thanks

  2. #2
    Registered User
    Join Date
    12-02-2010
    Location
    Singapore, Singapore
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: VBA autosort

    Is it impossible to be done under VBA macro?

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,494

    Re: VBA autosort

    It is not clear to me from your post what it is you need to do or what you are doing it with.

    I suggest that you post a sample workbook with some typical data and a little clarification of the sequence of events, input and desired output.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    12-02-2010
    Location
    Singapore, Singapore
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: VBA autosort

    okay, i've created a sample workbook. In it, I've simplify the scenario.

    Suppose I have made an entry of country China under the last row of "Asia" section.

    How do I have a VBA code which auto sort only those countries which are under Asia (in ascending alphabetical order)?

    In addition, I want the auto-sorting to not include column C but only column A, B and D.

    Many thanks
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-02-2010
    Location
    Singapore, Singapore
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: VBA autosort

    still no possible solution?

+ 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