+ Reply to Thread
Results 1 to 3 of 3

Using custom sort orders with Range().sort

  1. #1
    Registered User
    Join Date
    07-25-2018
    Location
    This Galaxy
    MS-Off Ver
    2013
    Posts
    2

    Question Using custom sort orders with Range().sort

    Good day everyone. I'm looking for a way to use a custom sort order with a Range().Sort method. I've seen some other ways to use custom sort orders but quite honestly I don't understand a lot of them. I've been trying with following bit of code to no avail, it defaults the order to alphabetical:

    Please Login or Register  to view this content.

    The goal of this code was to pull the custom sort order from the [Property Get]. I'm still a noob at VBA, any help either understanding or making this work would be appreciated. Thanks!

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Using custom sort orders with Range().sort

    Hello WestWindsDemon,

    Your use of the Property Get indicates the code in a Class Module. Can you post either all of the module code or a sample workbook?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    07-25-2018
    Location
    This Galaxy
    MS-Off Ver
    2013
    Posts
    2

    Re: Using custom sort orders with Range().sort

    I just scratched the property get part. I'm trying to focus solely on getting a custom sort order. While messing around with my code I did a sort by row and messed up my whole worksheet. I'm trying to fix that mistake now. And I didn't know property get should be on a class module. I've been using it on normal modules. The main issue that I'm having is getting that [OrderCustom:=] to properly work; honestly I have no idea what or how to put anything there.
    Last edited by WestWindsDemon; 08-21-2018 at 04:08 PM.

+ 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 the same range on every workseet except the first sheet?
    By Shannon561 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-04-2015, 08:10 AM
  2. Challenged: ascending sort within custom sort
    By jhren in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-10-2013, 12:35 PM
  3. [SOLVED] Macro to select a data range then apply a custom sort
    By dvsbyknight in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-20-2013, 01:50 AM
  4. Shortcuts to different sort orders?
    By Carson Dyle in forum Excel General
    Replies: 3
    Last Post: 05-05-2013, 01:24 AM
  5. [SOLVED] How to use custom sort while sorting left to right for entire dynamic used range
    By herbie226 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-05-2012, 11:58 PM
  6. selecting range for custom sort
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-27-2010, 03:15 AM
  7. Excel sort by Fill Color by custom list sort
    By Dash4Cash in forum Excel General
    Replies: 2
    Last Post: 07-29-2005, 06:05 PM

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