Somebody have buil an application that export codes in Word Automation. I have some problem with reference tables with automation variable: I.E. wdTable:=wdDoc.Tables.Item(1); or wdTable:=wdDoc.Tables(); then How can write to single cell of the table? Thank you very much
What you can do is make bookmark in the required cell and use wdDoc.SetBookmark(‘bookmarkname’) := ‘value’; (not sure if the syntax is correct). However if you want to have multiple rows it wil get a little more complicated.
No I want to reference table word object and the cell and so on, I have more lines and I want to add rows in the table
Try: wdTable.Cell(1,1) := Value; and wdTable.Rows.Add;