B
Bogdan Zamfir
Hi,
I have a Word DOC, with a table as below.
A
B
C
D
I need to fill in the cells A, B, C and D in a VBA macro
How can I address them?
I get the reference to the table with
Set oWrdTbl = ActiveDocument.table(1)
And I can address any cell in a table with the same number of rows and colums using Cells collection of Table object
oWrdTbl.cells(1,1).Range.Text = "My text"
However I don't know how to address cells in a table as below
Can anyone help?
Thank you
Bogdan
I have a Word DOC, with a table as below.
A
B
C
D
I need to fill in the cells A, B, C and D in a VBA macro
How can I address them?
I get the reference to the table with
Set oWrdTbl = ActiveDocument.table(1)
And I can address any cell in a table with the same number of rows and colums using Cells collection of Table object
oWrdTbl.cells(1,1).Range.Text = "My text"
However I don't know how to address cells in a table as below
Can anyone help?
Thank you
Bogdan