You can avoid VBA if you know a maximum possible number of rows. Use the following formula in A2
and apply it downward until you've applied through the maximum number of columns.
=IF(ROW()<=$C$3,A1+1,"")
So in reality, you still have a formula in these cells, but you won't see any output until they are supposed to be seen. It's a work-around.