Hello hrbreton,
Welcome to the Forum!
Both "add" buttons have the new macro attached to them. This uses the position of the button along with the bordering empty rows to determine the last row. There must be at least 3 rows present before the row will be copied. The two headers rows are excluded. The attached workbook has the macro added.
Sub AddNewRow()
Dim LastRow As Long
Dim Rng As Range
Dim Shp As Shape
Set Shp = ActiveSheet.Shapes(Application.Caller)
Set Rng = Shp.TopLeftCell.CurrentRegion
If Rng.Rows.Count > 2 Then
LastRow = Rng.Rows.Count
Rng.Rows(LastRow).Copy
Rng.Rows(LastRow + 1).Insert Shift:=xlShiftDown
Rng.Rows(LastRow + 1).PasteSpecial Paste:=xlPasteAll
Rng.Rows(LastRow + 1).ClearContents
Rng.Rows(LastRow + 1).Cells(1, 1) = Rng.Rows(LastRow).Cells(1, 1) + 1
Rng.Rows(LastRow + 1).Cells(1, 2).Select
End If
End Sub
Bookmarks