![]() |
| If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|||||||
| Tags: formatting, loses, replace, rich, text, vbscript |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
That's normal, expected behavior. You have jump through quite a few hoops if you want to preserve RTF formatting; see http://www.outlookcode.com/d/formatmsg.htm
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx wrote in message oups.com... 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. |
|
#3
|
|||
|
|||
|
Thanks very much!
The code you posted on http://www.outlookcode.com/codedetail.aspx?id=455 was perfect! did exactly what I wanted with very slight modification! Thanks again Ben. |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Rich text - HTML | Orcas2369 | Outlook - Using Contacts | 1 | April 11th 06 06:56 PM |
| Rich Text Formatting | WM | Outlook - Using Forms | 6 | April 3rd 06 03:56 PM |
| How do I read all my received mails in html- or rich text? | New to MS outlook | Outlook - General Queries | 1 | March 27th 06 11:43 AM |
| Copying to a text field in Contacts loses formatting | Jaime | Outlook - Using Contacts | 1 | March 10th 06 12:23 AM |
| Message sent as Rich Text appear as HTML | fali | Outlook - General Queries | 1 | March 2nd 06 10:46 PM |