Simple Question...
From: tess457 (tess457.1bx3u1_at_excelforum-nospam.com)
Date: 09/01/04
- Next message: Don Guillett: "Re: Last non-blank cell"
- Previous message: JE McGimpsey: "Re: formula to calculate the week number from a date?"
- Next in thread: Jamie: "Re: Simple Question..."
- Reply: Jamie: "Re: Simple Question..."
- Reply: Gord Dibben: "Re: Simple Question..."
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 1 Sep 2004 13:45:39 -0500
I need to search and filter an entire column in a database whose range
is continually changing by the day. What is the best way of searching
each cell in an entire column, and if the contents of the cell are now
what I am searching for, I want to delete the entire row? I am not sure
how to find the last row of data in the database, except by using the
"cntrl + *" function, and this selects the entire data range, so it
doesnt quite work. This is what I am curently using, but it doesnt seem
to filter through the complete file..i have to run the macro a few
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...
Dustin
--- Message posted from http://www.ExcelForum.com/
- Next message: Don Guillett: "Re: Last non-blank cell"
- Previous message: JE McGimpsey: "Re: formula to calculate the week number from a date?"
- Next in thread: Jamie: "Re: Simple Question..."
- Reply: Jamie: "Re: Simple Question..."
- Reply: Gord Dibben: "Re: Simple Question..."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|