View Single Post
 
Old 01-21-2024, 08:05 AM
ctviggen ctviggen is offline Windows 10 Office 2016
Advanced Beginner
 
Join Date: Feb 2021
Posts: 54
ctviggen is on a distinguished road
Default

I've done more research. What happens is I can manipulate the text in the newDoc fine, but the "Set aRng = Selection.Range" selects the end of the newDoc, so the modified text gets copied there.



I've tried (where "openDoc" is the "aDoc" as suggeted) "Set aRng = openDoc.Application.Selection.Range". This also inserts the text into newDoc instead of openDoc/aDoc. This one doesn't make sense to me, as it seems correct.


I've tried "Set aRng = openDoc.Selection.Range", but this gives an error.



I've done a search to find how to paste text into an open Word document at a cursor location, but what I find doesn't use two open documents.


I can't find how to select a cursor location in an open document to be able to paste in text from another (also open) document. I'm stumped.
Reply With Quote