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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top