+ Reply to Thread
Results 1 to 6 of 6

"auto sorting"

  1. #1
    Registered User
    Join Date
    07-12-2008
    Location
    Alabama
    Posts
    4

    "auto sorting"

    I've tried the VB for my auto sort but I guess I'm making mistakes somewhere. Any help would be appreciated.

    I would like to sort col a, b, c in decending order using col b as my data entry col. I only want to sort the 3 columns to row 6.

    Thanks

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    I wasn't sure what you meant by col b as the data entry column, but try the following:

    Please Login or Register  to view this content.
    HTH

  3. #3
    Registered User
    Join Date
    07-12-2008
    Location
    Alabama
    Posts
    4

    it looks like this

    A B C
    1 NAME VALUE RELATIVE FREQ
    2 poop 90 60%
    3 listening 30 20%
    4 spelling 10 7%
    5 broken 10 7%
    6 other 10 7%

    what i'd like to do is auto sort as the value under column B changes and I would like to sort columns A, B and C only down to row 6

    Thanks

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Maybe like this.
    Please Login or Register  to view this content.
    Code goes in the Sheet module:

    Adding Code to a Sheet module
    1. Copy the code from the post
    2. Right-click on the tab for the relevant sheet and select View Code. This opens the Visual Basic Editor (VBE) and shows the module for the selected worksheet.
    3. Paste the code in the window
    4. Close the VBE and return to Excel

  5. #5
    Registered User
    Join Date
    07-12-2008
    Location
    Alabama
    Posts
    4
    It works great!

    Thanks soooo much

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    You're welcome.

    Richard would have given you about the same answer -- please try to make your questions clear and complete. Thanks.

+ 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