View Single Post
 
Old 06-12-2023, 06:53 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

If the selected text includes full paragraphs then the styles will be pasted from document to document quite happily. If your selection doesn't include the trailing paragraph mark then the last selected paragraph's style won't transfer.

You haven't said how you want to 'manipulate' the text in newDoc so we can't advise on that.

When you paste back into the original doc, the same rules apply EXCEPT with the possible complication of cross-references. There are things you need to understand with cross-references:
1. Inserting a cross-reference places a hidden bookmark around the text being referred to and this is what the cross-ref field points at.
2. A bookmark can only exist in one place in one document.
3. A cross-ref only updates when you update the field so it is often out of date and needs to be refreshed if you want to see the right result.

So, if you COPY text including bookmarks AND cross-refs from a document paste it into another document then the cross-ref will still work at the new location. If you subsequently copy that range back to the original document it will try to bring the same bookmark name back to the document where that bookmark ALREADY exists.
If you REPLACE the original bookmarked text then you are also replacing that bookmark.
If you ADD the text back into another location in the document then Word will notice that the bookmark already exists and remove it from the freshly pasted text. The cross-ref will still point to the bookmark name and therefore point back to the original location of the bookmark. If that bookmarked text is subsequently removed (since you now have it in the document twice) then you will discover the cross-ref will break because the document no longer contains a bookmark with that name.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote