Hi so I have a table on an excel sheet and I am trying to get the table to add a new row, then select the leftmost cell in that new row (because I have a userform and that's where I want to start inputting the data).
Here is my code so far.:
I need help figuring out what goes where all the ?????????????? are that will select the leftmost cell of the newly created row in my table so that the inputs of the userform go where they are supposed to!!!!!
Here is my code so far.:
Code:
Private Sub cmdADD_Click( )
Sheets("Database").Activate
ActiveSheet.ListObjects("Table1").ListRows.Add AlwaysInsert=True
?????????????????????????????????????
ActiveCell.Value=txtCompoundRep.Value
ActiveCell.Offset(0,1).Value=txtTA.Value
End Sub
Last edited by a moderator: