+ Reply to Thread
Results 1 to 2 of 2

Help required with quicksort VBA

  1. #1
    Registered User
    Join Date
    08-02-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Help required with quicksort VBA

    Hello,

    I got below quicksort code from one of the online forums. What i observed was entire sort is fine except the middle (pivot) value. It did an extra swap which spoiled the output. Can someone please fix this code for me?

    I actually need to sort a string array which includes numbers as well. Can someone please make below code suitable for string comparison as well?

    Sort output
    30422931250
    30422936060
    30439815220
    767329405210
    767355886950
    767351008940
    767428295340
    767456457710
    767434830870

    Please Login or Register  to view this content.
    Thanks in advance
    Last edited by vikas_trl; 12-22-2014 at 03:50 AM.

  2. #2
    Registered User
    Join Date
    08-02-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Help required with quicksort VBA

    Sorry for the confusion. Above code is working fine. I did some mistake in my actual code.
    Thanks.

+ 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] Simple Conditional Formating Help Required - If Blank then Red Bold text required
    By thilag in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-19-2014, 12:23 PM
  2. Help required in matching data in required format
    By pravindwd in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-04-2013, 09:03 PM
  3. Help required in matching data in required format
    By pravindwd in forum Access Tables & Databases
    Replies: 1
    Last Post: 05-04-2013, 04:11 PM
  4. Adapt Quicksort to Sort Two Arrays Simultaneously
    By RS15 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-18-2013, 03:56 PM
  5. [SOLVED] Can this QuickSort work?
    By RB Smissaert in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 06-27-2006, 07:45 AM

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