Saving a "Sort"

dokouk

New Member
Joined
Oct 10, 2016
Messages
10
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!
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
51,843
Office Version
365
Platform
Windows
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.
 

Forum statistics

Threads
1,086,085
Messages
5,387,722
Members
402,075
Latest member
COwen

Some videos you may like

This Week's Hot Topics

Top