How to copy text from a Textfield in a Form and Paste it into a new document

L

leugim

Hi. I have to copy a certain portion of a text from one document
(readonly) to another.
Between this two documents the user must be able to edit this text.

I have created a form with a big texfield (multiline) and a button.
I was able to copy the right portions of text from it's origianl
document and paste them into the textfield.
But that text has to be edited in the textfield and then pasted into a
new document.
How do I acomplish this?
I tryed with
"txt_edit.Copy"
but no use.. it would not work.
Important is that formatting is preserved.
Thank you very much in advance

sorry for my english :)
 
J

Jean-Guy Marcil

leugim was telling us:
leugim nous racontait que :
Hi. I have to copy a certain portion of a text from one document
(readonly) to another.
Between this two documents the user must be able to edit this text.

I have created a form with a big texfield (multiline) and a button.
I was able to copy the right portions of text from it's origianl
document and paste them into the textfield.
But that text has to be edited in the textfield and then pasted into a
new document.
How do I acomplish this?
I tryed with
"txt_edit.Copy"
but no use.. it would not work.
Important is that formatting is preserved.
Thank you very much in advance

sorry for my english :)

With targetDoc
.Bookmarks("PlaceCopiedText").Range.FormattedText = _
sourceDoc.Bookmarks("TextField").Range.FormattedText
End With


--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top