Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Unless aa a/o bb populated with a space bar this should do it.
Sub delrowsifaaempty() lr = Cells.find(What:="*", After:=[A1], _ SearchDirection:=xlPrevious).Row For i = lr To 4 Step -1 If Cells(i, "aa") = "" And Cells(i, "ab") = "" Then Rows(i).Delete Next i End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "Wanna Learn" wrote in message ... Hello I get a daily report and I have to delete the entire row if cell AA and Cell AB are empty. staring from row 4 till the end. I have been doing this manually but is there a VBA code that would make this faster. thanks in advance |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
delete cells column. Delete empty cells | Excel Worksheet Functions | |||
How do I delete rows where cells are empty | Excel Discussion (Misc queries) | |||
delete all empty cells in a range | Excel Worksheet Functions | |||
Delete Empty Cells in a Macro | Excel Discussion (Misc queries) | |||
delete rows with empty cells | Excel Discussion (Misc queries) |