Referencing Tables in Visual Basic Editor
I have some tables in word that I up-date from data sourced from SQL.
This all works fine.
My question is as I reference the tables as per the example.
Example: ActiveDocument.Tables(4).Columns(1).Cells(cue).Ran ge.Text =
I would like to know if there is another way to identify the tables as if you remove or add tables prior to this one it is no longer "Tables(4)" so the piece of code fails.
I look forward to your response.
|