I have an Excel 2013 generated macro.
In the first command, what is the equivalent of Ctrl End to specify the full range? The number of rows will change daily and so need a method to encompass all rows.
In the second command, how do I use a Date function to specify (today-1) for Criteria1 and (today) for Criteria2.
I tried Date
, Date()
, "Date"
and other variations.
I am trying to automate a report that normally takes 30m manually every day. This is a small subset of the code.
Sub Macro7Step2()
'
' Macro7Step2 Macro
'
'
ActiveSheet.Range("$A$1:$AT$9272").AutoFilter Field:=17, Criteria1:= _
">=8/23/2021", Operator:=xlAnd, Criteria2:="<=8/24/2021"
ActiveSheet.Range("$A$1:$AT$9272").AutoFilter Field:=3, Criteria1:= _
"In Production"
End Sub