After using an "Autofilter" to identify a group of needed rows, I want to create a Range containing only the visible rows. I have tried the following code, but receive and error in the last statement:
Range("A1".Activate
var_StartDate = "11-1-00"
var_EndDate = "11-30-00"
Selection.AutoFilter Field:=4, Criteria1:=">=" _
& var_StartDate, Operator:=xlAnd _
, Criteria2:="<=" & var_EndDate
Range(xlCellTypeVisible).Select
Looking for help,
Ted
Range("A1".Activate
var_StartDate = "11-1-00"
var_EndDate = "11-30-00"
Selection.AutoFilter Field:=4, Criteria1:=">=" _
& var_StartDate, Operator:=xlAnd _
, Criteria2:="<=" & var_EndDate
Range(xlCellTypeVisible).Select
Looking for help,
Ted