Highlighted
Respected Contributor.
Respected Contributor.
953 views

Adding tables to a word file

Hello folks,

 

right now I'm working on a script which adds several tables to a word file.

But right now I'm facing the issue that the newest table overwrites the old table instead of appending it to the file.

 

Is there any good source for working with ms word and hp uft?

 

Greetings

0 Likes
1 Reply
Highlighted
Knowledge Partner
Knowledge Partner

You can use the Word COM object, what you probably need to send is a "go to end of doc" command. I've used QTP (UFT) to manipulate Word docs a while ago but I cannot remember the code required. 

Would something like this help?

http://www.vbforums.com/showthread.php?505134-vba-word-insert-text-at-the-end-of-the-document

Mark Smith.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.