Results 1 to 2 of 2

Thread: Saving a "Sort"
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Oct 2016
    London, UK
    Post Thanks / Like
    0 Post(s)
    0 Thread(s)

    Default Saving a "Sort"

    I have a standard report which I need to sort in the same way everytime. Is there a way to save the "sort" sequence and apply instead of re-creating each time?

    Thanks in advance!

  2. #2
    MrExcel MVP
    Junior Admin
    Joe4's Avatar
    Join Date
    Aug 2002
    Post Thanks / Like
    57 Post(s)
    11 Thread(s)

    Default Re: Saving a "Sort"

    Turn on your Macro Recorder, and record yourself sorting the report. Then stop the Macro Recorder.
    You will have just created/saved VBA code that will do that sort. So you can just run the code.

    Note that sometimes it may be necessary to edit your recorded code a little, if the range may change in size and you want to make it more dynamic. If you need to do that, post the code that you record, and let us know what changes need to be accounted for.
    1. Use the built-in Help that comes with Excel/Access
    2. Use the Search functionality on this board
    3. A lot of VBA code can be acquired by using the Macro Recorder.

    "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life!"

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts