i have tried to write code to delete blank rows in Col P from row 12 onwards where there s Data in Col F
when running the macro no rows are being deleted on sheet "Analysis"
kindly amend my code below
when running the macro no rows are being deleted on sheet "Analysis"
kindly amend my code below
Code:
Sub Del_BlankRows()
Dim LR As Long, I As Long
With Sheets("Analysis")
LR = Range("f" & .Rows.Count).End(xlUp).Row
For I = LR To 12 Step -1
On Error Resume Next
.Columns(I, 10).SpecialCells(xlCellTypeBlanks).EntireRow.Delete
On Error GoTo 0
Next I
End With
End Sub