I am trying to add to specific Tables, based on the Table name in cell A2. I'm unsure if I am searching with the right terminology but this is what I have no far, I obviously get a mismatch error:
Sub addToExistingTable()
Dim tblname As ListObject
Dim nNewRow As ListRow
tblname = Range("A2").Value
Sheets("sheet1").ListObjects(tblname).Range.Select
Set nNewRow = Selection.ListObject.ListRows.Add(AlwaysInsert:=True)
nNewRow.Range.Cells(1, 1).Value = Range("A1").Value
End Sub
Has anyone else had this problem and how did you get around it?