Hey, guys. I'm new here and to VBA so go easy on me I searched the forums but couldn't find exactly what I'm looking for so I thought I'd ask for help.
I've set up a macro and need it to filter a column for the last weekday. I could have used yesterday except that it would do me no good on Mondays when yesterday would have been a Sunday. So, I need it to filter for the last weekday only. That code that I used is pasted below but continues to get an error message. Any help is very much appreciated.
ActiveSheet.Range("$A:$AF").AutoFilter Field:=17, Criteria1:=Weekday(Now(), -1)
Dennis
Bookmarks