It's SelRTF property but you've first set SelStart and Sellength properties using Find method or manualy.
objrichtext.object.SelRTF = "some text"
>
>I would like to do following:
>1. Load RTF document as pattern.
>2. Replace certain text (for example
)
>3. Save document as final RTF document
>
>I cannot find function which could do replacing text but keeping text formating !
>objrichtext.object.text = "some text"
>deletes all formating.
>
--sb--