Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50061

Macro code for autofilter past dates

$
0
0
Hi,

I am using "ActiveSheet.Range("$A$1:$E$100000").AutoFilter Field:=4, Criteria1:="<" & Date, Operator:=xlAnd" for yesterday, its working fine, but i am not able to gett past days data. please help me out in this and i need single day wise data.

Yesterday date = 3 march
day before yesterday = 2 march, 1 march, 28 Feb, 27 Feb, 26 Feb, 25 Feb:confused:

Viewing all articles
Browse latest Browse all 50061

Trending Articles