L
Larry
I have a simple macro that pastes the selected text into a new document.
Selection.copy
Documents.Add
Selection.Paste
I thought of doing the same with a range. This works, but all character
formatting is lost:
Dim Target As Document, r As Range
Set r = Selection.Range
Set Target = Documents.Add
Target.Range.InsertAfter r & vbCr
Target.Activate
Is there any way to use the Range to insert the text, without losing
formatting?
Selection.copy
Documents.Add
Selection.Paste
I thought of doing the same with a range. This works, but all character
formatting is lost:
Dim Target As Document, r As Range
Set r = Selection.Range
Set Target = Documents.Add
Target.Range.InsertAfter r & vbCr
Target.Activate
Is there any way to use the Range to insert the text, without losing
formatting?