View Single Post
 
Old 09-21-2009, 04:01 PM
DavidB DavidB is offline Windows 2K Office 2000
Novice
 
Join Date: Sep 2009
Posts: 2
DavidB is on a distinguished road
Cool 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.
Reply With Quote