Finding a table in the document

S

SoNew2This

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
 
D

Doug Robbins - Word MVP

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.
--
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
 

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