View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Zippy Zippy is offline
external usenet poster
 
Posts: 7
Default Variables into autofilters

I know I can input an autofilter such as:

AutoFilterMode = False
.Range("A1:D1").AutoFilter
.Range("A1:D1").AutoFilter Field:=2, Criteria1:="=35", _
Operator:=xlAnd, Criteria2:="<=45"

But how do I get the two criteria to be read from variables whose values are
input by the user such as a Start_date and an End_date?

TIA.

Zippy.