vthomeschoolmom
13 years agoSuper Contributor
MS Word automation and getting to the objects
Does anyone have examples of the very BASICS of interacting with MS Word objects with TC? I would like to know how to get a handle on the Selection object of the current selection in the currently ope...
- 8 years ago
dasabaja wrote:After implementing the line that opens the document I got a different error.
TypeError WordDoc.Variables is not a function Error location: Unit: "HR\HR SmartTemplates\Script\Unit1" Line: 8 Column: 26.
Any hints on what this might be?
Change Variables("Group") to Variables.Item("Group"). The former is VBA/VBScript syntax, but in other languages you need to use the .Item() method to access collection items in MS Office COM objects.