M
MEPI
I have been searching this newsgroup for several weeks now trying to
solve a problem I've been having with automating a filter. I read an
older post that referenced the excellent web site Contextures. It
appeared that the file AdvFilterSearchWord.xls from that site would do
the trick - but if I just entered "pen"; when it filters, it returns
"Pen Sets", and also "Pencils". I wanted a filter that would return
nothing (as there aren't any instances of "pen"). I changed the
formula in the criteria cell (J2) from "SEARCH" to "FIND" and it worked
great. It was very fussy about the case of what I was searching for.
If I tried "pen", it returned nothing, "pen sets" returned nothing,
"Pen sets" returned nothing and "Pen Sets" worked just fine! I then
changed some of the data under the "Item" column to 18, 118, 188, 18a,
18b, N18 (because that is the type of data that I will have in the
column that I will be filtering) and then I tried to filter on "18".
It returned everything that had an "18" in it! I have tried to modify
the VBA code but I know little to nothing about VBA and been
unsuccessful. I would guess that it is a data type problem? This has
to be a simple and trivial problem, but I have to admit that I am
stumped. Any help would be appreciated.
solve a problem I've been having with automating a filter. I read an
older post that referenced the excellent web site Contextures. It
appeared that the file AdvFilterSearchWord.xls from that site would do
the trick - but if I just entered "pen"; when it filters, it returns
"Pen Sets", and also "Pencils". I wanted a filter that would return
nothing (as there aren't any instances of "pen"). I changed the
formula in the criteria cell (J2) from "SEARCH" to "FIND" and it worked
great. It was very fussy about the case of what I was searching for.
If I tried "pen", it returned nothing, "pen sets" returned nothing,
"Pen sets" returned nothing and "Pen Sets" worked just fine! I then
changed some of the data under the "Item" column to 18, 118, 188, 18a,
18b, N18 (because that is the type of data that I will have in the
column that I will be filtering) and then I tried to filter on "18".
It returned everything that had an "18" in it! I have tried to modify
the VBA code but I know little to nothing about VBA and been
unsuccessful. I would guess that it is a data type problem? This has
to be a simple and trivial problem, but I have to admit that I am
stumped. Any help would be appreciated.