Loutsscript rich text item paste

Is there a way to paste into a rich text item>?

I have an excel sheet and want to paste it into my richtextitem.

is there a way i can do that ?

since now im doing it like this

Set doc = ws.COMPOSEDOCUMENT(Mailserver, Mailfile, “Memo”)

doc.GOTOFIELD (“Body”)

Call doc.Paste

but all my other data gets erased if i do that…

thanks for your help

Subject: Loutsscript rich text item paste

I’m assuming without testing / looking at it then ‘GotoField’ command causes the entire contents of the Body field to be highlighted. After calling the GotoField you probably need another action which causes the cursor to move to the end of the Body field and then call Paste.

Look at something like SendKeys.

Alex

Subject: Loutsscript rich text item paste

Hey thanks for the feedbackI just tested myself and i figured out that what the problem is

when im doing

Call doc.fieldsettext(“body”,“output”) it erases all my text ( not my paste tho)

so if i have

Call doc.fieldsettext(“body”,“output”)

Call doc.fieldsettext(“body”,“output2”)

in my body i will have output2 only

do you know how to append text? also is there a way to add rich text item with a COMPOSEDOCUMENT??

Subject: RE: Loutsscript rich text item paste

What other data? You just composed a memo – what’s in the Body field that could be called data? Your signature file? I tried the same code and did not have a problem with the pasted data overwriting my automatically inserted signature.