Yes of course you can still hide it, but as there is no data, there is no end of data, so there is no way of knowing where to stop.
Or do you want to hide them all except 50? If so, maybe
BTW, why would you use Excel for a periodic table?Rows(k & ":" & Rows.Count - k + 1).Hidden = True