I need to copy a block of formatted text from one document to another.
Immediately after the paste, I need to adjust the selection depending
upon certain conditions.
So I need the selection to come into the new document 'highlighted' (and
retain its formatting). A normal copy/paste operation collapses the
insertion point to the end.
Can I do what I want?
Ed
Jonathan West - 06 Mar 2005 14:27 GMT
> I need to copy a block of formatted text from one document to another.
>
[quoted text clipped - 9 lines]
>
> Ed
This will do the needful
Sub PasteAndHighlight()
Dim iStart As Long
iStart = Selection.Start
Selection.Paste
Selection.Start = iStart
End Sub

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup