PC Review


Reply
Thread Tools Rate Thread

how do I force a new mailitem to use the HTML editor but not the WORD editor?

 
 
Scott Emick
Guest
Posts: n/a
 
      19th Oct 2004
I am using the following code. When outlook opens the message and the
Outlook HTML editor is the default editor, there is no problem. If Word is
the default editor, however, it butchers up the HTML and the message looks
like crap. How can I force the message to open in the Outlook HTML editor?

Thanks,
Scott

Dim myOlApp As Object
Const olMailItem As Integer = 0
Dim ns As Object
Dim folder As Object
Dim myItem As Object
myOlApp = CreateObject("Outlook.Application")
myItem = myOlApp.CreateItem(0)
With ne
HTML = [String].Format(strHTML, _
.NameFirst.Text, _
.nameLast.Text, _
.address1.Text, _
.Address2.Text, _
.City.Text, _
.state.Text, _
.Zip.Text, _
.phoneEve.Text, _
.phoneDay.Text, _
.Email.Text, _
.ddItems.Text, _
.old_refid.Text, _
strComments, _
.datecode.Text, _
.doc.Text, _
.ddCallType.SelectedItem.text, _
.ddResolution.SelectedItem.text, _
.ddDisposition.SelectedItem.text, _
.txtOrderId.Text, _
.dop.Text, Comments.Text)
End With
myItem.HTMLBody = HTML
myItem.BodyFormat = 2
myItem.To = Me._To.Text
myItem.Subject = "Applica Contact Manager Record"
myItem.Display()

--
Scott Emick
Web Programmer
Fox International
Remove the ham from mail address if it's not spam


 
Reply With Quote
 
 
 
 
Michael Bauer
Guest
Posts: n/a
 
      20th Oct 2004
Hi Scott,

you can find the setting in the registry (for OL 2000) under:
HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Options\Mail

Word-Editor: EditorPreference = &h10001
OL-Editor: EditorPreference = &h10000

But maybe OL reads this setting only once after starting. Just try it
:-)

--
Viele Grüße
Michael Bauer


"Scott Emick" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I am using the following code. When outlook opens the message

and the
> Outlook HTML editor is the default editor, there is no problem. If

Word is
> the default editor, however, it butchers up the HTML and the message

looks
> like crap. How can I force the message to open in the Outlook HTML

editor?
>
> Thanks,
> Scott
>
> Dim myOlApp As Object
> Const olMailItem As Integer = 0
> Dim ns As Object
> Dim folder As Object
> Dim myItem As Object
> myOlApp = CreateObject("Outlook.Application")
> myItem = myOlApp.CreateItem(0)
> With ne
> HTML = [String].Format(strHTML, _
> .NameFirst.Text, _
> .nameLast.Text, _
> .address1.Text, _
> .Address2.Text, _
> .City.Text, _
> .state.Text, _
> .Zip.Text, _
> .phoneEve.Text, _
> .phoneDay.Text, _
> .Email.Text, _
> .ddItems.Text, _
> .old_refid.Text, _
> strComments, _
> .datecode.Text, _
> .doc.Text, _
> .ddCallType.SelectedItem.text, _
> .ddResolution.SelectedItem.text, _
> .ddDisposition.SelectedItem.text, _
> .txtOrderId.Text, _
> .dop.Text, Comments.Text)
> End With
> myItem.HTMLBody = HTML
> myItem.BodyFormat = 2
> myItem.To = Me._To.Text
> myItem.Subject = "Applica Contact Manager Record"
> myItem.Display()
>
> --
> Scott Emick
> Web Programmer
> Fox International
> Remove the ham from mail address if it's not spam
>
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Word as HTML editor Markus Microsoft Word Document Management 2 31st May 2010 05:47 AM
Word as HTML editor =?Utf-8?B?Uk0=?= Microsoft Word Document Management 1 1st Nov 2005 08:41 PM
how can I force a new outlook mailitem to open in the Outlook HTML editor but not the Word editor? Scott Emick Microsoft VB .NET 1 20th Oct 2004 09:06 AM
Using Word as HTML editor in IE 6 TWF Windows XP Internet Explorer 1 25th Sep 2004 05:07 AM
Word as HTML Editor JD Microsoft Word Document Management 0 3rd Apr 2004 11:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:59 PM.