Not tested

Rows("5:11").Hidden = (Len(Range("A9").Value) = 0)
Repeat