VBScript change outlook mail format editor from HTML to Rich Text in the registry

Guys,

    How do you change outlook mail editor from HTML to Rich Text in the registry editor with vbscript?


Many thanks,
Maj
MajusriAsked:
Who is Participating?
 
dasmcseConnect With a Mentor Commented:
I should have mentioned that the above script is for Office 2003.
0
 
dasmcseCommented:
This should do it:

Const HKEY_CURRENT_USER = &H80000001
strComputer = "."      ' local computer

Set objRegistry = GetObject _
    ("winmgmts:\\" & strComputer & "\root\default:StdRegProv")

strKeyPath = "Software\Microsoft\Office\11.0\Outlook\Options\Mail"
strValueName = "EditorPreference"
intValue = 196609

errReturn = objRegistry.SetDWORDValue _
    (HKEY_CURRENT_USER, strKeyPath, strValueName, intValue)
0
 
MajusriAuthor Commented:
Thanks but do they have log off outlook in order for the change to take place.

Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.