Hi
Welcome to the forum
Which row do you want to hide?
Try
Code:Sub MM1() If WorksheetFunction.CountA(Range("AT4:BM4")) = 0 Then Rows("4:4").Hidden = True End Sub
Sub MM1()
Dim lr As Long, r As Long
lr = Cells(Rows.Count, "A").End(xlUp).Row 'change col reference to suit
For r = lr To 2 Step -1
If WorksheetFunction.CountA(Range("AT" & r & ":BM" & r)) = 0 Then Rows(r).Hidden = True
Next r
End Sub
Assuming that you have data all the way down column "A" try
Code:Sub MM1() Dim lr As Long, r As Long lr = Cells(Rows.Count, "A").End(xlUp).Row 'change col reference to suit For r = lr To 2 Step -1 If WorksheetFunction.CountA(Range("AT" & r & ":BM" & r)) = 0 Then Rows(r).Hidden = True Next r End Sub