I'm currently working on a project in which the user needs to add new rows into a table and each column value has to have a definded default state.
This was quite simple using an ActiveX button that has the following code inside:
Private Sub cmdAddRowPiezas01_Click()
Dim ThisSheetRef As Worksheet
Set ThisSheetRef = ActiveWorkbook.Worksheets("Piezas")
Dim myRow As ListRow
Dim intRows As Integer
Dim strNoData As String
strNoData = "N/A"
intRows = ThisSheetRef.ListObjects("tblPiezas01").ListRows.Count
intRows = intRows + 1
Set myRow = ThisSheetRef.ListObjects("tblPiezas01").ListRows.Add(intRows)
myRow.Range(1) = intRows
myRow.Range(2) = strNoData
myRow.Range(3) = strNoData
End Sub
As you can see, what I'm doing is just adding a new row at the end of the "tblPiezas01" table and setting the values of each cell... but the user needs to click the button for this to happen.
Is there a way for me to make this code execute when they hit the "TAB" key at the end of the table instead?
It'd make the process of adding pre-formatted rows way easier (this table only has 3 columns, but I've got several others that include up to 10 columns some with different pre-established values.)
I've scoured the internet for a bit but I've run into the fact that Excel hasn't a built in "AddRow" event, I've seen some solutions that use the "Worsheet_Change" but so far I've got no luck making it work :/ (The code executes EVERY time the worksheet changes, therefore when I set the cell's value to something it triggers again... and that in turn triggers it again and so on).

To add a calculated column if your column already has manual data:
1: copy your existing data to a new range temporarily
2: highlight the entire column of each column that you want to have a default value. Here column a is
=A7+1, column b & c are="N/A"3: tab to add a new row to your table first. Then paste your original data back into your table. The calculated formulas should work.
If you don't want the green error flags, you can turn them off in Options > Formulas > Inconsistent calculated column formula in tables