Public Sub Delete_Row_or_Range()
Const DELETE_ENTIRE_ROW = True
Dim Is_It_Blank As Boolean
Dim Number_of_Columns As Integer
Dim Number_of_Rows As Long, First_Row As Long, Last_Row As Long, i As Long
Dim Range_To_Be_Checked As Range, rw As Range
Set Range_To_Be_Checked = Range("B2:K100")
With Range_To_Be_Checked
First_Row = .Row
Number_of_Rows = .Rows.Count
Number_of_Columns = .Columns.Count
End With
Last_Row = Number_of_Rows - First_Row + 1
Application.EnableEvents = False
Application.ScreenUpdating = False
For i = Last_Row To 1 Step -1
Set rw = Range_To_Be_Checked.Rows(i).Cells
Is_It_Blank = Application.WorksheetFunction.CountBlank(rw) = Number_of_Columns
If Is_It_Blank Then
If DELETE_ENTIRE_ROW Then
rw.EntireRow.Delete
Else
rw.Cells(1, 1).Value = 1
End If
End If
Next
Application.EnableEvents = True
Application.ScreenUpdating = True
End Sub