Hi all,
First of all, let me say tha this forum already helpt me a lot in building my own excel sheets. Having said that, I don't see myself as an experienced user. I just manage to make my own macro's with the help of the record function. So far, they work and that enough for me.
Now I want to make a filter based on 2 values in a cell. The current filter is this :
Sheets("LTSB").Select
ActiveSheet.ListObjects("Tabel1").Range.AutoFilter Field:=28, Criteria1:= _
">-5", Operator:=xlAnd, Criteria2:="<10"
where >-5 and <10 are the two criteria to filter on.
I would like to have a filter where a user can put those 2 criteria in, lets say cell A1 and A2 and then run the macro again to get a different range.
Is there a simple way to achieve this ?
Stefan
First of all, let me say tha this forum already helpt me a lot in building my own excel sheets. Having said that, I don't see myself as an experienced user. I just manage to make my own macro's with the help of the record function. So far, they work and that enough for me.
Now I want to make a filter based on 2 values in a cell. The current filter is this :
Sheets("LTSB").Select
ActiveSheet.ListObjects("Tabel1").Range.AutoFilter Field:=28, Criteria1:= _
">-5", Operator:=xlAnd, Criteria2:="<10"
where >-5 and <10 are the two criteria to filter on.
I would like to have a filter where a user can put those 2 criteria in, lets say cell A1 and A2 and then run the macro again to get a different range.
Is there a simple way to achieve this ?
Stefan