A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
Try this version. It has an inputbox with a default of 23 for the last row which you can change.
Sub hide_rows()
'Declare variables
Dim Lastrow As Long, x As Long
' Find the last used row on the sheet
Lastrow = Application.InputBox("Enter last row number", "Row", 23, Type:=2)
'Loop to look at every row
For x = 4 To Lastrow
'test every cell in the row column C to N to see if they are blank
If WorksheetFunction.CountBlank(Cells(x, "C").Resize(, 12)) = 12 Then
'if there are 12 enply cells (C-N) then hide the row
Rows(x).Hidden = True
End If
Next
End Sub