+ Reply to Thread
Results 1 to 2 of 2

Sort command using a macro

  1. #1
    Forum Contributor
    Join Date
    11-30-2020
    Location
    Ny
    MS-Off Ver
    Office 365
    Posts
    173

    Sort command using a macro

    using the sample chart provided, what I want to do is sort this list from largest to smallest keeping the name and value together when sorted. I know I can use the sort function to do this however is there a way to create a macro so that this procedure can be done with one click. thank in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: Sort command using a macro

    It's likely to work better if you didn't have merged cells and you DID HAVE headers. Then you can select all the columns and sort on the numeric column. If you want a macro, record one while you carry out the steps of the sort manually. You'll need to tweak and adjust the macro to make it generic.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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] Sub Sort Command
    By RJ1969 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-20-2019, 11:25 AM
  2. [SOLVED] VBA Sort Command
    By mowens74 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-12-2018, 03:29 AM
  3. [SOLVED] Where is the PivotTable “Sort and Top 10” command ?
    By RogeratCCCC in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 12-26-2012, 01:34 PM
  4. Need to add a sort command to macro
    By ukphoenix in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-02-2008, 10:49 AM
  5. Bringing up sort command
    By don in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2006, 07:55 PM
  6. Sort command does not sort some columns?
    By BillyBob in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 05-11-2006, 11:20 AM
  7. sort command
    By Joe McManemin in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 03-31-2005, 04:06 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