I have inserted a table:
MyApp.ActiveDocument.Tables.Add Range:=MyApp.Selection.Range, numrows:=5,
numcolumns:=5

How do I pass this table to an object variable using the Set stmt?
Set objTable = MyApp.Table(1) does not work.

Thanks

EM

RE: Setting an Object to a Word Table by ExcelMonkey

ExcelMonkey
Fri Jun 13 13:00:01 PDT 2008

Sorry it works using .Tables(1). I had Table(1)

"ExcelMonkey" wrote:

> I have inserted a table:
> MyApp.ActiveDocument.Tables.Add Range:=MyApp.Selection.Range, numrows:=5,
> numcolumns:=5
>
> How do I pass this table to an object variable using the Set stmt?
> Set objTable = MyApp.Table(1) does not work.
>
> Thanks
>
> EM