I have a spreadsheet in Excel 2003, that lists employees of a call site, and tracks every time a call is monitored. It’s by date, so each employee name appears multiple times. What I want to do is check the first instance of each name, see if that monitoring is “OK”, if so go to the next instance of their name and do the same thing. If they have a monitoring that is “NG” then I want to delete all instances of that employee’s name from the spreadsheet. The spreadsheet can be refreshed, so that’s not a problem. What I want to end up with is literally the last man standing, a listing of the one employee (if there is one) who received an “OK” every time he or she was monitored for a given period of time.
I’ve tried several ways, none of which have worked. I’ve tried doing a FIND ALL in code, which would find all instances of a single employee, but when I deleted the row with the employee’s name it broke the loop. Also when that loop was put into a FOR NEXT loop, to get the next employee, it stopped working entirely. I tried using another spreadsheet in the workbook that is used for pulling monitorings of individual employees, but couldn’t get the loop to work on the listbox.
I’m up for any and all suggestions at this point, and any help will be greatly appreciated. Thanks.