+ Reply to Thread
Results 1 to 5 of 5

VBA excel sorting based on 3 column criteria

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    VBA excel sorting based on 3 column criteria

    Hi,

    I used the "record macro" to find out how to sort my data but it gives a lot of stuff. Not 100% sur what is needed and what is not.

    I have data in A1: Z300. Row 1 (ie...A1:Z1) is headers.

    I want to sort the data set
    By A1
    By X1
    By Z1

    Any ideas on how to do this via VBA? I dont want to do 3 separate sorts.......i assume there is a way to do one sort with all 3 criteria at once.

  2. #2
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: VBA excel sorting based on 3 column criteria

    if i have to do 3 sorts that fine........

  3. #3
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: VBA excel sorting based on 3 column criteria

    i think i may have figured it out..........

    Please Login or Register  to view this content.
    it seems to work.

  4. #4
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: VBA excel sorting based on 3 column criteria

    or

    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    Last edited by snb; 05-18-2011 at 07:40 AM.



  5. #5
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: VBA excel sorting based on 3 column criteria

    snb,

    i like yours better than mine....less typing. thanks!!!!!!!

    learned something new again.

+ 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