+ Reply to Thread
Results 1 to 3 of 3

sort columns with multiple selection

  1. #1
    Forum Contributor
    Join Date
    10-01-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    125

    sort columns with multiple selection

    Hi,

    Attached is the example sheet

    I would like to sort A,C,E columns based on A column data either ascending or descending and have to sort B,D,F columns based on B column data.

    I am using the followin code here:

    Please Login or Register  to view this content.
    But facing problem as I have described in the above code. Can any body help how sort columns with multiple selection? Any help will be greatly appreciated.

    Thanks
    Attached Files Attached Files
    Last edited by krish T; 11-06-2010 at 05:16 AM. Reason: solved the problem

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: sort columns with multiple selection

    You can't sort nonadjacent columns, so just put the columns to sort together, sort, then put them back.
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    10-01-2010
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    125

    Re: sort columns with multiple selection

    Hi JBeaucaire,

    Awesome. Thanks a lot. You helped me a lot so far. Its working perfect.

    Sincerely
    Krish T

+ 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