Related:
- Excel vba filter data between two dates using userform
- Vba userform - Guide
- Excel vba find - Guide
- How to copy data from one excel sheet to another - Guide
- Export data from excel - Guide
- Vba excel mac - Guide
1 response
in case of date store the range of date in variables fromdate and todate. Input values in Variables whether through excel cell or inputmsg or hard code it. Try this code
ActiveSheet.Range("$B$5:$O$289").AutoFilter Field:=2, Criteria1:= _
">=" & fromdate, Operator:=xlAnd, Criteria2:="<=" & todate
hope this works
ActiveSheet.Range("$B$5:$O$289").AutoFilter Field:=2, Criteria1:= _
">=" & fromdate, Operator:=xlAnd, Criteria2:="<=" & todate
hope this works