Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
need to delete all rows except those containing "apples" and or
"oranges" in column G. code below works, just need to add second criteria. assuming that "a" would be changed to "g". Sub Delete_Row() For i = Cells(Rows.Count, "a"). _ End(xlUp).Row To 2 Step -1 If InStr(UCase(Cells(i, "a")), "MZ")<1 _ Then Rows(i).Delete Next i End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Delete Rows if any cell in Column H is blank but do not Delete Fir | Excel Programming | |||
Copy pasting Rows, but need to Delete any Shapes/Pictures that are within copied rows | Excel Programming | |||
Cut filtered rows, paste into next empty row of new sheet, and delete cut rows | Excel Worksheet Functions | |||
How to delete rows when List toolbar's "delete" isnt highlighted? | Excel Worksheet Functions | |||
Delete every 3rd row, then delete rows 2-7, move info f/every 2nd row up one to the end and delete the row below | Excel Programming |