Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 01-21-2024, 08:05 AM
ctviggen ctviggen is offline Working with an active document and new document to retain styles and cross-referencing Windows 10 Working with an active document and new document to retain styles and cross-referencing Office 2016
Advanced Beginner
Working with an active document and new document to retain styles and cross-referencing
 
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
 



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
Working with an active document and new document to retain styles and cross-referencing Cross Referencing w/Track Changes Active Liza Word 1 11-06-2014 12:44 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:09 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft