Hi,
I am trying to improve my code for find and remove the empty row below the cells that contain "12-2014".
Unfortunately, I could not figure this out. Your help will be deeply appreciated.
Best,
Matt
I am trying to improve my code for find and remove the empty row below the cells that contain "12-2014".
Unfortunately, I could not figure this out. Your help will be deeply appreciated.
PHP:
Cells.Find(What:="12-2014", After:=ActiveCell, LookIn:=xlFormulas, _ LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _ MatchCase:=False, SearchFormat:=False).Activate If ActiveCell.Offset(1, 1) = "" Then ActiveCell.Offset(1, 1).EntireRow.Delete Shift:=xlUp Cells.FindNext(After:=ActiveCell).Activate If ActiveCell.Offset(1, 1) = "" Then ActiveCell.Offset(1, 1).EntireRow.Delete Shift:=xlUp Cells.FindNext(After:=ActiveCell).Activate If ActiveCell.Offset(1, 1) = "" Then ActiveCell.Offset(1, 1).EntireRow.Delete Shift:=xlUp Cells.FindNext(After:=ActiveCell).Activate If ActiveCell.Offset(1, 1) = "" Then ActiveCell.Offset(1, 1).EntireRow.Delete Shift:=xlUp Cells.FindNext(After:=ActiveCell).Activate If ActiveCell.Offset(1, 1) = "" Then ActiveCell.Offset(1, 1).EntireRow.Delete Shift:=xlUp Cells.FindNext(After:=ActiveCell).Activate If ActiveCell.Offset(1, 1) = "" Then ActiveCell.Offset(1, 1).EntireRow.Delete Shift:=xlUp Cells.FindNext(After:=ActiveCell).Activate If ActiveCell.Offset(1, 1) = "" Then ActiveCell.Offset(1, 1).EntireRow.Delete Shift:=xlUp Cells.FindNext(After:=ActiveCell).Activate If ActiveCell.Offset(1, 1) = "" Then ActiveCell.Offset(1, 1).EntireRow.Delete Shift:=xlUp Cells.FindNext(After:=ActiveCell).Activate If ActiveCell.Offset(1, 1) = "" Then ActiveCell.Offset(1, 1).EntireRow.Delete Shift:=xlUp Cells.FindNext(After:=ActiveCell).Activate If ActiveCell.Offset(1, 1) = "" Then ActiveCell.Offset(1, 1).EntireRow.Delete Shift:=xlUp Cells.FindNext(After:=ActiveCell).Activate If ActiveCell.Offset(1, 1) = "" Then ActiveCell.Offset(1, 1).EntireRow.Delete Shift:=xlUp Cells.FindNext(After:=ActiveCell).Activate If ActiveCell.Offset(1, 1) = "" Then ActiveCell.Offset(1, 1).EntireRow.Delete Shift:=xlUp
Best,
Matt