+ Reply to Thread
Results 1 to 4 of 4

VBA Sort not getting results I need

  1. #1
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 365
    Posts
    263

    VBA Sort not getting results I need

    In the attached workbook, I have a list (Columns A-E) that I want sorted so that I get the results that are shown in Columns I-M.
    However, when I run the code below, I can't seem to get that result. Could someone please tell me what I am missing?
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by coach.32; 06-27-2019 at 06:38 PM.

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow


    According to your expected result, you just forgot to delete rows #102 to 110 before to sort …

  3. #3
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 365
    Posts
    263

    Re: VBA Sort not getting results I need

    I deleted the rows mentioned and then ran the macro. I'm still not getting the desired result?!

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool

    So just after deleting rows #102 to 110 that just needs on my side a single codeline !

    As a beginner starter :

    PHP Code: 
        [A1].CurrentRegion.Sort [D1], xlAscending, [A1], , xlAscendingHeader:=True 
    Do you like it ? So thanks to click on bottom left star icon « Add Reputation » !

+ 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. Replies: 5
    Last Post: 05-09-2017, 08:48 AM
  2. [SOLVED] Sort recordset results
    By dwbennett in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2015, 08:55 AM
  3. Sort Rows and copy sort results to new worksheet?
    By Apache_sim in forum Excel General
    Replies: 0
    Last Post: 06-30-2015, 03:17 AM
  4. Sort Query Results to remove duplicate entries and put results on one line.
    By Panther70 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-01-2015, 03:03 PM
  5. sort results from a search box
    By megsyp in forum Excel General
    Replies: 15
    Last Post: 11-20-2014, 10:18 AM
  6. [SOLVED] Trying to sort results before pasting (where to insert "sort code")
    By macrorookie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-09-2014, 10:24 PM
  7. Replies: 4
    Last Post: 11-20-2012, 06:00 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