![]() |
|
|||||||
|
|
Thread Tools | Display Modes |
|
#7
|
|||
|
|||
|
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. |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Code on a button to attach a document to my Word Auto fill document is not working on a Mac | reynoldsrjr | Word | 0 | 03-30-2020 04:00 AM |
| Single step Word Styles from Source Document through entire Destination document? | xbliss | Word | 6 | 08-27-2016 09:36 PM |
| How to save active document to SharePoint document library | Rose roon | Word VBA | 9 | 09-22-2015 10:53 PM |
| document styles and some formatting doesn't appear where should when different people view document | Dilbert fan | Word | 1 | 08-23-2015 05:07 AM |
Cross Referencing w/Track Changes Active
|
Liza | Word | 1 | 11-06-2014 12:44 PM |