Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / December 2004

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fred Holmes - 22 Dec 2004 19:24 GMT
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
Word Heretic - 23 Dec 2004 04:55 GMT
G'day Fred Holmes <fsh@his.com>,

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:

>Win XP SP2, Word 2003
>
[quoted text clipped - 15 lines]
>
>Fred Holmes
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.