Thread: [Solved] VBA find or name a Table
View Single Post
 
Old 01-17-2011, 01:37 PM
smed smed is offline Windows XP Office 2007
Novice
 
Join Date: Jan 2011
Posts: 3
smed is on a distinguished road
Question VBA find or name a Table

I would like to know how to find or name a table using VBA, either method will solve my problem. By naming a table I mean that I can access a table called "Table1" by something like this:

celltext = ActiveDocument.Tables("Table1").Cell(1, 1).Range.Text

I can't simply use the index of the table because it may change depending if more tables are added before the one I want to access.

Thanks.
Reply With Quote