+ Reply to Thread
Results 1 to 5 of 5

Need help with automatic sorting in Visual Basic.

  1. #1
    Registered User
    Join Date
    06-05-2013
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2010
    Posts
    55

    Need help with automatic sorting in Visual Basic.

    I am trying to get the sheet to automatically sort by D then by F then G.
    Thank you for the help.

    John
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    06-24-2016
    Location
    Slovakia
    MS-Off Ver
    MS Office 365
    Posts
    92

    Re: Need help with automatic sorting in Visual Basic.

    Hi John,

    I added following code to your file:
    Please Login or Register  to view this content.
    Check attached file.
    I hope it's doing what you wanted.

    Excelko
    Attached Files Attached Files
    Have a fantastic day

  3. #3
    Valued Forum Contributor Maudibe's Avatar
    Join Date
    12-21-2016
    Location
    USA
    MS-Off Ver
    2010-2013
    Posts
    326

    Re: Need help with automatic sorting in Visual Basic.

    Excelko,

    I don't think that will provide what mahelek wants to achieve. You are offering 3 individual and different sorts with each sort resorting (and undoing) the previous sort. It appears that a three level sort is needed here. A simple macro recorder will give you what you need.

    HTH,
    Maud

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,522

    Re: Need help with automatic sorting in Visual Basic.

    Try
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    08-08-2015
    Location
    North Carolina USA
    MS-Off Ver
    MS Office 2016
    Posts
    368

    Re: Need help with automatic sorting in Visual Basic.

    Or in layman's terms..

    Please Login or Register  to view this content.
    Last edited by BG1983; 02-03-2017 at 11:04 PM.

+ 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. an example of sorting in visual basic 2005
    By 1Melina in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2016, 06:50 PM
  2. Visual Basic Macro Sorting help
    By jonesster in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2013, 08:56 AM
  3. Replies: 5
    Last Post: 06-04-2012, 04:56 AM
  4. [SOLVED] trying to use visual basic when SQL not available
    By tiger10012 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-24-2011, 08:26 AM
  5. [SOLVED] Can I run Visual Basic procedure using Excel Visual Basic editor?
    By john.jacobs71 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-26-2005, 10:25 AM
  6. Replies: 1
    Last Post: 09-13-2005, 07:06 AM
  7. [SOLVED] Sorting in Visual Basic
    By Jack Marks in forum Excel General
    Replies: 2
    Last Post: 07-14-2005, 08:05 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