Thread: [Solved] adding rows to word table
View Single Post
 
Old 07-18-2011, 12:14 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi hklein,

AFAIK, tables don't have a name property. However, you can bookmark a table or you could use either the 'Title' or 'Descr' property (both of which relate to the table's 'alternative text' attribute for web pages) to identify the table.

As for referencing a particular cell, taking the previous code a step further, you could use something like:
.Tables(k).Cell(RowNum, ColNum).Range.Text = "My Text"
where RowNum and ColNum are the row and column numbers, respectively.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote