+ Reply to Thread
Results 1 to 5 of 5

Need a little help with a sorting code

  1. #1
    Forum Contributor colddeck84's Avatar
    Join Date
    06-18-2016
    Location
    bergen, norway
    MS-Off Ver
    2016
    Posts
    254

    Need a little help with a sorting code

    Hello guys
    A few month ago i was luckily enough to receive help from a member here Jindon

    he gave me this code:

    Please Login or Register  to view this content.
    Basically this code sort list taken from my sheet "matches" and sort it into columns in new sheet "lists" Its sorts countries in column A:A and row 1:1

    The code is super fast but there is only one small hiccup with it because it does not sort the column "B: last column" A to Z

    i've been using this workaround:

    Please Login or Register  to view this content.
    which is designed by me and is super slow. Unfortunately with my skill set its the best i can do :/
    Any help to speed up this and maybe even dump the helper code would be great.

    regards

    frederik

  2. #2
    Forum Contributor prabhuduraraj09's Avatar
    Join Date
    05-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    330

    Re: Need a little help with a sorting code

    Hi,

    Probably try the below, by disabling the events and calculation. And re enabling them

    HTML Code: 
    Thank you

    If I have helped you in someway, use the * icon below to give reputation feedback, it is appreciated.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Need a little help with a sorting code

    Hi Frederick,

    Simply comment out your For and Next lines. See what happens.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Contributor colddeck84's Avatar
    Join Date
    06-18-2016
    Location
    bergen, norway
    MS-Off Ver
    2016
    Posts
    254

    Re: Need a little help with a sorting code

    Hi and good morning. I tested code as suggested by prabhuduraraj09 gotta say it was super fast and exactly what I was looking for
    My code load time has been greatly been reduced , much appreciated

  5. #5
    Forum Contributor colddeck84's Avatar
    Join Date
    06-18-2016
    Location
    bergen, norway
    MS-Off Ver
    2016
    Posts
    254

    Re: Need a little help with a sorting code

    You know my web puller script has gone from 15-30 sec load time. to 3-7 secs after this latest edit (also optimized something else)

+ 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] Sorting first column not working, sorting column 2 and 3 does (same code)
    By jokris in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-13-2016, 03:08 AM
  2. [SOLVED] Add a Sorting Code to the Original Code
    By aviatecar in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-23-2014, 03:00 PM
  3. Sorting code help
    By saziz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-19-2008, 12:53 AM
  4. VBA code for sorting
    By tink_ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-31-2007, 10:41 PM
  5. sorting code
    By Larry in forum Excel General
    Replies: 5
    Last Post: 08-02-2006, 02:45 AM
  6. Help sorting out my code PLEASE
    By itsonlyme4 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-06-2006, 01:30 PM
  7. Sorting with code
    By JohnDK in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-03-2005, 05:09 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