Closed Thread
Results 1 to 4 of 4

Button/Link on worksheet to Sort

  1. #1
    Registered User
    Join Date
    09-28-2008
    Location
    Katy, TX
    Posts
    59

    Button/Link on worksheet to Sort

    I would like to have a button or a link on my spreadsheet that when it is clicked will sort my table with a pre-defined sort.

    Is there a way to do this?

    g
    Last edited by Patchworks; 07-13-2009 at 07:22 AM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Button/Link on worksheet to Sort

    Yes. Record a macro going through all of the steps of applying the sorting.

    Next, create a button object from the Forms controls and assign the macro to this button.

    The resulting VBA code won't be the most efficient, but you can post it and someone will help refine it for you.

    Suggestion: create a dynamic named range to be used as the sort range so that as data is added or deleted your range reference in the VBA will always be current. The dynamic named range will have to be hand coded into the macro.

  3. #3
    Registered User
    Join Date
    09-28-2008
    Location
    Katy, TX
    Posts
    59

    Re: Button/Link on worksheet to Sort

    Thanksk bud!!

    Worked perfect!!

    g

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Button/Link on worksheet to Sort

    You're quite welcome.
    Used to live in Houston. Man, do I miss getting some good beef brisket!

Closed 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