C
Christine
I would be grateful if someone could provide me with code that will hide a
line when a particular cell (e.g. B) is empty.
line when a particular cell (e.g. B) is empty.
Tom Hutchins said:You just need to change one line (the For statement):
Sub hiderowifcolempty()
For i = 10 To 5 Step -1
If Len(Application.Trim(Cells(i, "B"))) < 1 Then _
Rows(i).Hidden = True
Next i
End Sub
Hope this helps,
Hutch