D
Dave Peterson
Maybe...
Sub TEST()
Sheets("Store Data").Select
with worksheets("sheet99")
with .range("a1")
if isempty(.value) then
'skip it
else
Selection.AutoFilter Field:=8, Criteria1:=.value, _
Operator:=xlTop10Items
end if
End with
with .range("a2")
if isempty(.value) then
'skip it
else
Selection.AutoFilter Field:=20, Criteria1:=">" & .value
end if
end with
with .range("a3")
if isempty(.value) then
'skip it
else
Selection.AutoFilter Field:=21, Criteria1:=">" & .value
end if
end with
end with
End Sub
Maybe you can pick out something worth saving.
Sub TEST()
Sheets("Store Data").Select
with worksheets("sheet99")
with .range("a1")
if isempty(.value) then
'skip it
else
Selection.AutoFilter Field:=8, Criteria1:=.value, _
Operator:=xlTop10Items
end if
End with
with .range("a2")
if isempty(.value) then
'skip it
else
Selection.AutoFilter Field:=20, Criteria1:=">" & .value
end if
end with
with .range("a3")
if isempty(.value) then
'skip it
else
Selection.AutoFilter Field:=21, Criteria1:=">" & .value
end if
end with
end with
End Sub
Maybe you can pick out something worth saving.