Dear Ed,
Figuring out "
what I need to connect and follow that with" relates to the organization of the MS Word Object Model. Please refer to the Word Object Model Reference MSDN >> MSDN Library >> Office Development >> 2007 Microsoft Office System >> Word 2007 >> Word 2007 Developer Reference >>
Word Object Model Reference. You can think of the Object Model as a software hierarchy. You must start at the top of the hierarchy and work your way down to the item of interest. You must descend the hierarchy one level at a time; you cannot skip levels.
At each level of the hierarchy, you have access to the methods and properties of that "level".
Click on the Tables Collection link from the Word Object Model Reference page. Notice how Tables is at the top of the hierarchy. When you have a LabVIEW reference to a Tables object (technically speaking a collection), you then have access to the methods and properties supported by this "level". Click on the Tables Object Members link.
Here you will see that the Tables collection supports two methods, Add and Item, and also supports five properties, Application, Count, Creator, NestingLevel, and Parent.
Notice how Mike gets the Count property of the Tables object. He then uses the
Item method to return a reference to an individual table. The key thing to take away from this is how Mike uses the Item output node to gain access to the methods and properties of the Table object (not the Tables collection). Mike has descended the hierarchy from Tables to Table. He descends the hierarchy again with the
Cell method and
Range property of the Table and Cell object respectively. Lastly, the Text property of the Range object, "
Returns or sets the text in the specified range or selection."
Effective LabVIEW programming with this type of ActiveX control requires a fair understanding of how Microsoft organized its software libraries. The Object Model Reference is a good place to start visualizing how these libraries are organized. Thank you for using the forums Ed, and thanks for your post, Mike.