Quote:
Originally Posted by macropod
To use the 'FormattedText' property in anything like you describe, you'd have to use something like:
|
I have no doubt this is the right approach, but I have trouble implementing it in my own code. ;-) Here's what I have so far...
Code:
Dim RangeA As Range
Dim RangeB As Range
Set RangeA = Selection.FormattedText
Set RangeB = RangeA
'RangeA.Delete
Selection.Collapse
Selection.FormattedText = RangeB
The code works ok until I uncomment the 'RangeA.Delete' instruction. If I do that, RangeB is deleted together with RangeA, so in the end nothing will be written to the document.
Alex