I just had an application for this, sorting phone numbers, with 4 columns: LD, AC, Prefix, and Nbr.
After trying the macro recorder, and searching this and other sites, I modified the macro written by the recorder to
always adjust to the number of lines in my data. The columns are hard-coded, to sort by LD, then AC, then Prefix, and
then Nbr (columns A through D respectively), and I have the first 2 rows with header information. So, I sort on rows 2
through the last row, using Row2 2 as a header.
This may not be exactly what you are looking for, but maybe it will give you a start to be modified.
Good Luck!
Code: (My first post, so I hope I did it right. Thanks for any tips, etc.).
Bookmarks