+ Reply to Thread
Results 1 to 2 of 2

VBA Not Sorting?

  1. #1
    Forum Contributor
    Join Date
    02-15-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    141

    VBA Not Sorting?

    I have an Excel sheet with numerous sets of data aligned vertically on the page.

    For instance,

    Set 1
    -102
    -340
    -52

    Set 2
    -55
    -676
    -23

    Etc.

    I'd like to sort all of these sets from largest to smallest. I created a macro using filters, and another using the sort dialog box, and neither worked.

    Here's an example: VBA Sorting Example.xlsx

    Anyone have any ideas?

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VBA Not Sorting?

    First question is why are all your numbers negative or is that a dash?

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VBA Not Sorting?

    I have sorted by column C and by Column D with no issues.

    The attachement is sorted by column D
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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