R
Robin Tucker
Hi there,
I am "copying" text from one location to another in my document, but before
I paste the text, I would like to manipulate it (remove some field codes for
instance). Is there any way I can reference the "copied" text and play
around with it before pasting it?
Here is my copy/paste code:
.....
.....
' Set the range to the position of the start and end field codes
Selection.SetRange fieldStart.Result.End, fieldEnd.Result.Start
' Copy between
Selection.Copy
' Collapse the selection to the end
Selection.Collapse Direction:=wdCollapseEnd
' and paste it into the document once for each record in the recordset.
For i = 0 To adoRS.RecordCount - 2
....... wish to edit the "copied" text here, perhaps to change a
field code or two......
Selection.Range.Paste
Next
.....
.....
I am "copying" text from one location to another in my document, but before
I paste the text, I would like to manipulate it (remove some field codes for
instance). Is there any way I can reference the "copied" text and play
around with it before pasting it?
Here is my copy/paste code:
.....
.....
' Set the range to the position of the start and end field codes
Selection.SetRange fieldStart.Result.End, fieldEnd.Result.Start
' Copy between
Selection.Copy
' Collapse the selection to the end
Selection.Collapse Direction:=wdCollapseEnd
' and paste it into the document once for each record in the recordset.
For i = 0 To adoRS.RecordCount - 2
....... wish to edit the "copied" text here, perhaps to change a
field code or two......
Selection.Range.Paste
Next
.....
.....