Hello All,
Ok, I am trying to figure out how to sort a 2-Dimensional Dynamic Array based on 2 criteria. Then once the array is sorted, create a new array with only the rows with the most recent date. It is hard for me to describe, but I have attached an excel document with my test code. I can't even get the sorting to work properly so I haven't even started on trying to eliminate the old test dates yet.
Score Data tab -
The data in this table is exported from a website and pasted into the rows below the blue headings. The red headings have formulas in them and shouldnt be included in the array that is printed, but the Full Name column is a sorting criteria. I have the existing macro printing the correct columns, but the sorting isnt working. Dont change where the data is printed.
LATEST -Score Data tab-
This is the result I want the macro to produce. A sorted list which then eliminates all data except for the most recent entries for each person.
All Personnel - Scores tab-
The computer program where the original data is copied from does not always contain all the personnel I need. So this tab pulls the most recent data from the "LATEST -Score Data" tab and allows for the manual entry of data if that person is not included in that tab. No changes needed here.
I have one macro that works which uses the autofilter, but then I have to manually copy and paste that sorted list onto the "LATEST -Score Data" tab. I would like to eliminate that step.
Module 1 - The macro I need help with described above
Module 2 - AutoFilter macro that works how I want (except it doesnt paste the cells)
Module 3 - macro which clears the Autofilter after sorting the data
Let me know if this post doesnt make sense. I think it will make sense if you look at the attachment though. Thank you all in advance!
Bookmarks