I have this table in Excel:
and I have the following formula in column N:
Under the button named Adauga
, I have a subroutine that adds new rows before row 5:
Sub Button3_Click()
Sheets("Sheet1").Range("A5").Select
ActiveCell.EntireRow.Insert Shift:=xlDown
End Sub
But the formula does not copy into the new row. How can I modify my code to copy the formula also? I tried some methods but I ended up copying the values also. It is important that the row inserts before row 5.