I am using the code below to auto filer data for items that have not been completed and are over 60 days old, where column A is blank and column C is <= 60 days ago.
This works but I am wanting to use a workbook open event to check this and if there are any rows that met this bring up a message box letting me know which rows it is, it would need to look at the data in sheet2 from A4 to the last thing in Column C, can this be done?
Thanks Using Excel 2003
This works but I am wanting to use a workbook open event to check this and if there are any rows that met this bring up a message box letting me know which rows it is, it would need to look at the data in sheet2 from A4 to the last thing in Column C, can this be done?
Thanks Using Excel 2003
Code:
Sub NotComplete()
Dim FilterCriteria As String
FilterCriteria = Date - 60
Sheet2.Range("B3").AutoFilter
Sheet2.Range("B3").AutoFilter Field:=3, Criteria1:="<=" & FilterCriteria, Operator:=xlAnd
Sheet2.Range("B3").AutoFilter Field:=1, Criteria1:="="
End Sub