Home |
Search |
Today's Posts |
#10
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Typo "and = Date - 1", sori as keyboard not functioning very good.
"Seeker" wrote: Hi Gord, I would like to adopt your code also and tried in column B with = Date and =Date 1 both work great, however, I would like to delet rows with Date less than today but I was rejected with the "<", how could I accomplish the less than effect please? Rgds "Gord Dibben" wrote: I don't understand the "certain cell" bit. A certain cell should have an address like A1 or B23 Maybe you meant certain column? This will delete all rows with a certain value in any cell in Column A Sub DeleteRows_With_Param() FindString = "qwerty" Set b = Range("A:A").Find(what:=FindString, lookat:=xlWhole) While Not (b Is Nothing) b.entirerow.Delete Set b = Range("A:A").Find(what:=FindString, lookat:=xlWhole) Wend End Sub Gord Dibben MS Excel MVP On Fri, 11 Jul 2008 14:05:01 -0700, marcia2026 wrote: I am trying to do a Loop/Until macro in order to delete all rows with a certain value in a certain cell. The only thing I can find on deleting rows requires me to specify the row number. That will be variable |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Delete Rows based on condition | Excel Discussion (Misc queries) | |||
Macro to delete rows based on a condition | Excel Worksheet Functions | |||
Delete worksheet row based on condition | Excel Programming | |||
How to delete a data row based on a condition | New Users to Excel | |||
Delete Columns based on a condition | Excel Programming |