T
tess457
I need to search and filter an entire column in a database whose rang
is continually changing by the day. What is the best way of searchin
each cell in an entire column, and if the contents of the cell are no
what I am searching for, I want to delete the entire row? I am not sur
how to find the last row of data in the database, except by using th
"cntrl + *" function, and this selects the entire data range, so i
doesnt quite work. This is what I am curently using, but it doesnt see
to filter through the complete file..i have to run the macro a fe
times, and even then it deletes what it shouldnt.
Sub Filter()
Dim cel As Range, rng As Range
Set rng = Range("D2", Range("D50").End(xlUp))
For Each cel In rng
If cel.Value <> " " Then
cel.EntireRow.Delete
End If
Next cel
I would really appreciate anyones help or suggestions!! Thanks a ton..
Dusti
is continually changing by the day. What is the best way of searchin
each cell in an entire column, and if the contents of the cell are no
what I am searching for, I want to delete the entire row? I am not sur
how to find the last row of data in the database, except by using th
"cntrl + *" function, and this selects the entire data range, so i
doesnt quite work. This is what I am curently using, but it doesnt see
to filter through the complete file..i have to run the macro a fe
times, and even then it deletes what it shouldnt.
Sub Filter()
Dim cel As Range, rng As Range
Set rng = Range("D2", Range("D50").End(xlUp))
For Each cel In rng
If cel.Value <> " " Then
cel.EntireRow.Delete
End If
Next cel
I would really appreciate anyones help or suggestions!! Thanks a ton..
Dusti