outlook 2003 custom forms

L

lrbtav

I have code to convert rich text/text emails to HTML for my default
reply-to. Here is the code:


Function Item_Open()

TestText=Item.HTMLBODY
If TestText="" Then Item.HTMLbody=Replace
(Item.Body,vbCrlf," ")
End Function

When I try to import the form I get 'DisplayName is either missing or
has an incorrect value'. Why can't I import this form? Thanks.
 
S

Sue Mosher [MVP-Outlook]

What do you mean by "import the form"?

You should replace vbCrLf not with a space but with the appropriate HTML tag, i.e. "<br>".

FYI, there is a newsgroup specifically for Outlook forms issues "down the hall" at microsoft.public.outlook.program_forms or, via web interface, at http://www.microsoft.com/office/com...spx?dg=microsoft.public.outlook.program_forms
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
L

lrbtav

What do you mean by "import the form"?

You should replace vbCrLf not with a space but with the appropriate HTML tag, i.e. "<br>".

FYI, there is a newsgroup specifically for Outlook forms issues "down the hall" at microsoft.public.outlook.program_forms or, via web interface, athttp://www.microsoft.com/office/community/en-us/default.mspx?dg=micro...
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers

Maybe 'import' is the wrong choice of wording. I have a portion of
code that, according to a website found on Google, is supposed to
allow me to force any Replies in Outlook 2003 to use HTML format
rather than rich/text. Since the code is apparently useless, is there
another way I can accomplish this?
 
S

Sue Mosher [MVP-Outlook]

The code sample at http://www.outlookcode.com/codedetail.aspx?id=1326 would be more appropriate than an Outlook custom form for replying with HTML format.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
L

lrbtav

The code sample athttp://www.outlookcode.com/codedetail.aspx?id=1326would be more appropriate than an Outlook custom form for replying with HTML format.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers

I tried the solution found on your link, with the updated code per the
user comment. Did something to this effect:
http://img236.imageshack.us/img236/9650/untitledti4.png
Still replies to either text/rich text provided the originating email
is in that format.
 
S

Sue Mosher [MVP-Outlook]

Show the code from the ThisOutlookSession module that you're using to generate an instance of your Class1 class.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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