I have a macro that amongst other things sorts a number of lists by a month, however instead of rewriting the code for every month i want to be able to enter the month into a cell and have the code pick up that month and sort by it. How can I do this?
For example, my autofilter is:
Selection.CurrentRegion.AutoFilter Field:=4, Criteria1:="Jul09"
But I want to replace the Jul09 with a link to a cell in which i can enter any date in the form "mmmyy" and have the code filter by that date.
Thanks!
!--removed tag-->
Enter your message below
Sign in or Join us (it's free).