+ Reply to Thread
Results 1 to 4 of 4

Create VBA script to short, dedicated button in excel for script?

  1. #1
    Registered User
    Join Date
    02-25-2008
    Posts
    6

    Create VBA script to short, dedicated button in excel for script?

    I would like to have a button in excel where as anytime i pressed it, it would sort by column K from largest to the smallest.

    Is this an easy task?

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Create VBA script to short, dedicated button in excel for script?

    Hello realized,

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    02-25-2008
    Posts
    6

    Re: Create VBA script to short, dedicated button in excel for script?

    Thank you!!

    How do i make a custom button to put that in ? So its always in excel ?
    Excel 2007

  4. #4
    Valued Forum Contributor
    Join Date
    09-04-2007
    Location
    Ontario, Ca
    Posts
    624

    Re: Create VBA script to short, dedicated button in excel for script?

    Hi realized

    And a great Fantastic Hi to Leith. You know "realized" with Leith, you are working with someone that I believe is untouchable. He really is Fantastic and he has helped me with some very deep code. Thanks Leith.

    Realized . . . I don't know if you ever need to sort by different columns on the same worksheet, but I will throw out my idea that may help you in the future.

    I have 18 out of 24 columns that I want to sort by at any particular time.
    First, I entered my column names, then I used a text box for each column without any fill (can see through). I do not type a name into the text box as you can see the column header through the text box. Then you can right click on the text box and assign the macro for that particular column.

    As soon as you accomplish Leith's code, you can use it also for mine. A difference being that he is using a range for the data to be sorted and I set my range inside my code and it also expands as more rows are added.

    Leith . . . Call me some time when you have time.

    Matt Gentry Sr.
    909-702-3307
    Thanks for helping . . .
    Matt @ Launchnet

+ 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