View Single Post
  #1  
Old April 20th 06, 11:46 AM posted to microsoft.public.outlook.program_forms
[email protected]
external usenet poster
 
Posts: 5
Default Rich Text Loses formatting on VBScript Replace

I have an outlook form in which I have a small amount of code behind,
simply to change a hyperlink to encorperate then value entered in a
compulsary custom field. The code is as follows:

Function Item_Send()
Item.Body = Replace(Item.Body, "@@@@@",
Item.UserProperties.Find("jobNumber").Value)
End Function

The function works, however the message (in Rich Text format) loses all
formatting. Is there any way I can keep the forms current layout?

Many Thanks in Advance!

Ben.

Ads