+ Reply to Thread
Results 1 to 6 of 6

Sort Column by Custom Order

  1. #1
    Registered User
    Join Date
    04-08-2015
    Location
    America
    MS-Off Ver
    Office 2013
    Posts
    29

    Sort Column by Custom Order

    I have a simple array of data in the attached spread sheet.
    I am looking for a way to sort the data in such a way that column B is custom sorted North East South West from top to bottom. i.e. all the North entries come first, then the east, south and west.
    I am looking for a VBA macro that for private sub workbook_open() such that it executes when the sheet is opened.
    Thanks for any help on this.

    Cheers,
    nKife
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,414

    Re: Sort Column by Custom Order

    Hello,

    Here's a suggestion :

    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Registered User
    Join Date
    04-08-2015
    Location
    America
    MS-Off Ver
    Office 2013
    Posts
    29

    Re: Sort Column by Custom Order

    GC thanks for the suggestion. Will this just sort the column and no the data associated with it?. i.e. will it just sort column B? Ideally I would like the entire table to sort as well based on this custom sort.

  4. #4
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,414

    Re: Sort Column by Custom Order

    All the table will be sorted.

  5. #5
    Registered User
    Join Date
    04-08-2015
    Location
    America
    MS-Off Ver
    Office 2013
    Posts
    29

    Re: Sort Column by Custom Order

    thanks GC well done.

  6. #6
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,414

    Re: Sort Column by Custom Order

    You're welcome.

+ 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] custom sort list order in vba
    By sarksloane in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-20-2014, 09:45 AM
  2. custom sort change month order
    By hopefulhart in forum Excel General
    Replies: 5
    Last Post: 07-11-2014, 12:27 AM
  3. Custom sort order
    By 4lowie in forum Excel General
    Replies: 14
    Last Post: 03-09-2014, 11:08 AM
  4. [SOLVED] Custom Sort Order for Sheets
    By Comisar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-15-2013, 02:10 PM
  5. VBA Custom Sort Order Issues
    By Warderbrad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-22-2012, 04:38 PM
  6. Custom sort order problem
    By mfmcclellan in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-04-2012, 05:05 PM
  7. Problems with custom sort order
    By bluphoto in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-11-2008, 06:23 PM

Tags for this Thread

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