Posted: Mon Dec 10, 2007 2:42 am Post subject: Identify a Table
Is there any way to Identify a particular table from the list of available
tables in the word page.
I have a Single Page Word document which has 8 tables inserted from
different files. Now i need to fill a particular table with values.
When i used Thisdocument.Tables (Number) Sometimes i am getting the right
table and some times not the right one.
How can i fill data to the right table.
Posted: Mon Dec 24, 2007 5:39 am Post subject: Re: Identify a Table
You could try setting the Table.ID property on each of the tables and
then check if against the table you have. Unfortunately I don't thnk
there is anyway to specifically select a table by its ID. You would
need to iterate each table in the document and until you found the one
with the correct ID. You need to be aware however that the ID is not
unique.
Have a play with the code below to see what I mean. Run it first on a
blank document then again (leaving the tables that were created the
first time).
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum