Having an issue with this code. It doesn't appear to be collecting all dates based on the following statement;
11 months prior to today + all dates beyond that date.
I don't want to set a specific date because I want to be able to run the code any day.
-Thanks in advance for help!
11 months prior to today + all dates beyond that date.
I don't want to set a specific date because I want to be able to run the code any day.
-Thanks in advance for help!
VBA Code:
Private Sub DUE1_Click()
Dim objWorkbook As Workbook
Dim dtStart As Date
Dim dtFinal As Date
'open the workbook with data
Set objWorkbook = Workbooks.Open( _
"H:\RECORDS\MATRIX\matrix.xls")
'filter dates
dtStart = CDate(Evaluate("EOMONTH(TODAY(),-11)"))
Sheets("Current Emp").Range("F6:BB300").AutoFilter 12, ">=" & dtStart
End Sub