Copy between 2 Winword files

Copper Contributor

Greeting,

 

I have 2 Winword file DOCA (3 lines txt) and DOCB (5 lines txt),

 

My task is append the DOCA to DOCB make the new DOCB as 8 lines (5+3)

 

I open DOCA and copy the content to the clipboard, then close DOCA

 

then I open DOCB, paste() the clipboard, What I found, once I did the paste(), and close DOCB

 

the content in DOCB is 3 lines which from DOCA. is not what I am try to get 8 lines.

 

anyone can help. what is wrong

 

Thanks

usera

 

by the way, if I open DOCB only and use following code.

$objSelection.TypeParagraph()
$text = "Append TX"
$objSelection.TypeText($text)

 

and close DOCB, DOCB get update

 

 

 

0 Replies