Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub Find_0()
Dim rng As Range Dim what As Long With ActiveSheet.UsedRange what = 0 Set rng = .Find(what:=what, _ After:=Range("A1"), _ LookIn:=xlValues, _ LookAt:=xlWhole, _ SearchOrder:=xlByRows, _ SearchDirection:=xlNext, _ MatchCase:=False) If Not rng Is Nothing Then Do Rows(rng.Row).Delete Set rng = .FindNext(.Range("A1")) Loop Until rng Is Nothing End If End With -- Regards, Tom Ogilvy "Cathy" wrote in message ... I have a rather large spreadsheet and need to delete multiple rows with contain a value of 0. I ran a macro which worked, but it deleted not only rows which contained 0, but all other rows which contained figures has a 0. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Deleting Multiple Blank Rows | Excel Discussion (Misc queries) | |||
Deleting a rows from multiple worksheets | Excel Worksheet Functions | |||
deleting multiple rows | Excel Discussion (Misc queries) | |||
deleting multiple rows with multiple criteria | Excel Programming | |||
Inserting & Deleting rows can take ages in Excel 2000 | Excel Programming |