Cell in a table

G

Guy Cohen

Hi all
Using VB+WORD
I have two tables in a document
How can I look in one of the tables cell?
e.g.
PersonName=WordDoc.Tables(1).Cell(row,column).text !?!?!

TIA
Guy
 
M

Malcolm Smith

Guy

You are almost there. You will want the .Range object of the Cell and
then get the .Text of that Range object, thus:

PersonName=WordDoc.Tables(1).Cell(row,column).Range.Text

Hope that this helps
- Malc
www.dragondrop.com
 
Top