This is a little bit outside my area of expertise but it seems to me that by
using wapp.NewDocument all you have done is to add a reference in the task
pane (in a non-visible word App) to a non existent document. There is
probably no active document and no selection. You are therefore passing
non-existent parameters to the Tables.Add.
I think an approach may be to dim MyDoc as Word.Doc
Set MyDoc = wapp.Documents.add
Then either use MyDoc.activate
Or use MyDoc.Tables.Add rather than ActiveDocument.Tables.Add
I am sure one of the Word vba Experts will be able to improve on this