The following code creates a compile time error message "type mismatch":
Private Sub Example
JustAdd(Sheet1.ListObjects("Table6"))
End Sub
Public Sub JustAdd(ByRef tableN As ListObject)
tableN.ListRows.Add
End Sub
Also tried:
Private Sub Example
Dim tmp As ListObject
Set tmp = Sheet1.ListObjects("Table6")
JustAdd(tmp)
End Sub
Public Sub JustAdd(ByRef tableN As ListObject)
tableN.ListRows.Add
End Sub
Also:
Private Sub Example
Dim tmp As ListObject
tmp = Sheet1.ListObjects("Table6")
JustAdd(tmp)
End Sub
Public Sub JustAdd(ByRef tableN As ListObject)
tableN.ListRows.Add
End Sub
Just need a quick nudge in the right direction to get this JustAdd subroutine working