+ Reply to Thread
Results 1 to 4 of 4

Macro to Sort in Specific Order

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,754

    Macro to Sort in Specific Order

    I have VBA Code to sort the data on sheet ?Account Numbers? by Col C in the same order per sheet ?Unique? in Cell Z1 to Z5


    When Runing the code, I get a run time error : Appllication Defined Error

    Please Login or Register  to view this content.

    My Full Code is

    Please Login or Register  to view this content.



    Kind Test & Amend my Code


    I have also posted on https://www.mrexcel.com/board/thread...-sort.1240892/
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,575

    Re: Macro to Sort in Specific Order

    try
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,754

    Re: Macro to Sort in Specific Order

    Thanks for the help Jindon


    Your code works perfectly

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,648

    Re: Macro to Sort in Specific Order

    By the way, I've mistakenly posted it into wrong thread, so probably not for you, but for someone who finds this thread by searching:

    Please Login or Register  to view this content.
    Best Regards,

    Kaper

+ 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] Need a VBA macro to sort data as indicated in the specific range from a source?
    By Ariful Islam in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-22-2023, 09:32 AM
  2. When a recorded sort macro is run a specific line row height is set to 0 afterwards.
    By JustJohn91 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-03-2016, 07:49 PM
  3. Macro to sort data in a clolunm if specific text is in another colunm
    By petitesouris in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-02-2016, 12:52 AM
  4. Sort in Macro without referencing specific sheet
    By Ellie1326 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-22-2013, 09:01 AM
  5. [SOLVED] Macro to sort and paste data in specific cells
    By planbms in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-12-2012, 07:39 PM
  6. Macro to enter value then sort specific range
    By PinkMafia14 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-25-2011, 08:00 AM
  7. macro to sort data in worksheet by specific date
    By joey in forum Excel General
    Replies: 0
    Last Post: 11-14-2005, 04:10 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