awsumchillicrab
Board Regular
- Joined
- Jan 30, 2011
- Messages
- 56
I have an input box asking for a date. This is my variable Date1.
How do I use Date1 in a VBA autofilter code, with inequality signs?
E.g. These do not work:
How do I use Date1 in a VBA autofilter code, with inequality signs?
E.g. These do not work:
range("A1").CurrentRegion.Autofilter field:=6 Criteria1:=>Date1
range("A1").CurrentRegion.Autofilter field:=6 Criteria1:=">Date1"
range("A1").CurrentRegion.Autofilter field:=6 Criteria1:=">"Date1