I have a report that has to filter out Terminated employees, I have a macro that filters by column S, selects all terminated EE's, then deletes those rows. However, it's not guaranteed that the first terminated EE will always be on the same row. For instance, it could be row 22 this week and then row 16 next week. The code I have now for that part of the macro is
Application.Goto Reference:="R1C1"
ActiveCell.Offset(1).Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.EntireRow.Delete
It is supposed to go to A1 and then drop down to the next shown row (first terminated EE) and then select and delete those rows. As I mentioned earlier, that first shown row can vary from week to week. What code should I use to accurately delete the first shown row each week?