Hi people,
I am trying to copy a row and paste it after the last row of data but retain only formula and no data. Have since found Excel won't do this so I have created a hidden row with the formula and no data.
This is row 5.
I then want to copy this row and paste or insert it below the last row with data. The cell A5 does not have a formula or data. The following is what I have but the new row is hidden. Any thoughts/help much appreciated.
Thank you in anticipation
I am trying to copy a row and paste it after the last row of data but retain only formula and no data. Have since found Excel won't do this so I have created a hidden row with the formula and no data.
This is row 5.
I then want to copy this row and paste or insert it below the last row with data. The cell A5 does not have a formula or data. The following is what I have but the new row is hidden. Any thoughts/help much appreciated.
VBA Code:
[CODE=vba]
Rows("5:5").Select
Selection.Copy
Range("A5").Select
Selection.End(xlDown).Offset(1, 0).Select
Selection.Insert Shift:=xlDown