I have the code:
Sub Add_New_Row()
Application.ScreenUpdating = False
Dim Ws As Worksheet
Dim Target As Range
Dim Lrow As Long
Set Ws = ActiveSheet
Lrow = Ws.Range("A" & Rows.Count).End(xlUp).Row
Set Target = Ws.Cells(Lrow, 1)
Ws.Range(Cells(Target.Row, 1), Cells(Target.Row, 11)).Copy
Target.Offset(1, 0).PasteSpecial xlPasteFormats, xlPasteSpecialOperationNone
Ws.Range(Cells(Target.Row, 8), Cells(Target.Row, 11)).Copy
Target.Offset(1, 7).PasteSpecial (xlFormulas)
Target.Offset(1, 0).Value = Target + 1
Target.Offset(2, 0).EntireRow.Insert
End Sub
Where a new row is inserted via a "button" on the sheet. What I also need is for the "New Row" to protect the formula included in it to stop anyone from changing those formula.
Bookmarks