I am currently tring to find a table in a word doc using execl automation. I
can not find the first table.
?
dim tbl as word.table
set tbl = wdapp.activedocument.tables(1)
If the activedocument has a table (or more), above lines
will give you a pointer to the first table.
(provided wdapp is a valid object variable pointing to the word instance
y've instantiated in yr Excel code)
Krgrds,
Perry
>I am currently tring to find a table in a word doc using execl automation.
>I
> can not find the first table.
Jason - 30 Jan 2007 19:21 GMT
thanks, Is there a easier way to skip a row and copy the next one and paste
it on another doc.

Signature
Thanks
Jason
> ?
> dim tbl as word.table
[quoted text clipped - 11 lines]
> >I
> > can not find the first table.
Perry - 30 Jan 2007 20:18 GMT
Sure but
Skip a row?
Under which circumstances?
Or just skip a row?
Meaning get data from second row?
If the latter, something like below code will do
Dim tbl as word.table
dim cel as word.cell
Set tbl = wdapp.activedocument.tables(1)
for each cel in tbl.rows(2).cells
Debug.print cel.range
next
Krgrds,
perry
> thanks, Is there a easier way to skip a row and copy the next one and
> paste
[quoted text clipped - 16 lines]
>> >I
>> > can not find the first table.