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 / March 2008

Tip: Looking for answers? Try searching our database.

Finding a table in the document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SoNew2This - 20 Mar 2008 02:02 GMT
I need help in finding a specific table in a document. This table in one
document could be the 10th table while in another document it could be the
8th table. This specific table has user enter data that is used in
calculations that are placed in different cells in the same table.Would a
bookmark be the easiest to find and if so what is the code to find this.

Thanks,
SoNew2This
Doug Robbins - Word MVP - 20 Mar 2008 03:53 GMT
Yes, you can select a table and insert a bookmark, then use

Dim mytable As Table
Set mytable = ActiveDocument.Bookmarks("Mytable").Range.Tables(1)

to create a reference (mytable) to the table by which you can refer to it in
your code.
Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

>I need help in finding a specific table in a document. This table in one
> document could be the 10th table while in another document it could be the
[quoted text clipped - 4 lines]
> Thanks,
> SoNew2This
 
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.