Identifying table by name?

C

carl

is there a way to give a unique name identification to a
table and then use this name to acces this table in VBA?

It is more cleaner then this:
Activedocument.table(1).select

example:
Activedocument.table.item("Table_Name").select
 
L

Lutz Gentkow

Hi Carl,
is there a way to give a unique name identification to a table?

yes, if you use bookmarks. Mark the complete table and give it a name.
You can access the table then with

ActiveDocument.Bookmarks("table2").Select

Greetings from Germany

Lutz, MVP Word/VBA
 

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