+ Reply to Thread
Results 1 to 3 of 3

Custom Sort Numbers and Suffixes

  1. #1
    Registered User
    Join Date
    04-17-2024
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1

    Custom Sort Numbers and Suffixes

    Good afternoon,
    I have a list of numbers that simply are not sorting correctly. I've used macros and VBA code I found to solve this issue with a different spreadsheet, but when I simply duplicated the sheet to use with a different set of numbers, the custom sort no longer works. I am not that savvy when it comes to VBA but highly motivated and willing to learn.
    I've attached the file I am working with. Any help or guidance is appreciated.

    Thanks so much!
    Attached Files Attached Files

  2. #2
    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
    44,477

    Re: Custom Sort Numbers and Suffixes

    What does "the custom sort no longer works." mean?

    You have two worksheets, one visible, one hidden. But you have one CustomSortClickmacro that refers to the visible sheet and the Table on it ( Deed Doc#s (2) and Table22 ). You have a "button" on each sheet to call CustomSortClick but it will only work on Table22.

    You don't really need a UDF to extract the numeric part of the code. You have a formula to extract the alphabetic part of the code ( =RIGHT(C3,5) ), so you can use that to get the numeric part:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Probably a lot quicker and you don't have to have macros enabled for it to function.
    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


  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
    44,477

    Re: Custom Sort Numbers and Suffixes

    Revised Code

    Please Login or Register  to view this content.

+ 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. Creating a VBA script to sort a selected group via custom sort.
    By jpt145 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2020, 05:45 PM
  2. Using custom sort orders with Range().sort
    By WestWindsDemon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2018, 03:52 PM
  3. [SOLVED] VBA to custom sort on custom list
    By GregStewartPTC in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-22-2018, 12:54 PM
  4. [SOLVED] Custom sort without custom list
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-12-2016, 02:10 PM
  5. Challenged: ascending sort within custom sort
    By jhren in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-10-2013, 12:35 PM
  6. [SOLVED] How can you get Excel to sort numbers with alpha suffixes? 1234A
    By boneified5 in forum Excel General
    Replies: 1
    Last Post: 05-17-2006, 11:10 AM
  7. [SOLVED] 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