Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have written this to delete the row of cells within the selected range when
the value "Rock Breaking" is in a cell in the row. It is however deleting the entire row. How do I stop this? Sub tmp3() Dim rngOfData As Range Dim Cell As Range With Sheets("Daily Report") Set rngOfData = .Range("DA20:DE29") End With For Each Cell In rngOfData If Cell.Value = "Rock Breaking" Then Cell.Row.Delete End If Next Cell End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to delete a row based on a condition | Excel Programming | |||
Delete Range Cell Based on Condition | Excel Programming | |||
Highlighting Range of Cells based on another cell with 5 condition | Excel Programming | |||
Delete Cells Based on Range | Excel Programming | |||
Delete Columns based on a condition | Excel Programming |