Getting the text in an explicit cell of an explicit table.

F

Fred Holmes

Win XP SP2, Word 2003

I would like to code a statement to put the text that is in an explict
cell of an explicit table into a TextBox on a vba UserForm. Something
like

TextBox1.Text = TableName.CellAddress.Text

in the code for the UserForm.

Where do I find the correct general syntax for such a statement?

How is a Table in a Word document named? How is a specific cell
addressed (e.g., same as in Excel, or something different?) Where is
this written up?

Many thanks,

Fred Holmes
 
W

Word Heretic

G'day Fred Holmes <[email protected]>,

The safest way is something like

ActiveDocument.Tables(i).range.Cells(n)

where n is the number of cells into the table. With a three col table,
cell 2 row 2 is thus cells(5).


Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Fred Holmes reckoned:
 

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