Setting the application properties.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm using Outlook 2003 and want to set the application's mail format through
code.

I'd like to be able to set the message format of OutLook to turn Word as the
editor on and off. I'll be doing this in code and know the conditions for
selecting either but I don;t know how to get to this property.

Can anyone help at all please?

TIA.
 
There is no such property. Those settings are stored in the Windows registry and loaded once, when Outlook starts.

Here's the registry value:

Key: HKCU\Software\Microsoft\Office\11.0\Outlook\Options\Mail
Value name: EditorPreference
Value type: REG_DWORD
Value data: 131072 = HTML/Outlook
131073 = HTML/Microsoft Word
196610 = Rich Text/Outlook
196609 = Rich Text/Microsoft Word
65536 = Plain Text/Outlook
65537 = Plain Text/Microsoft Word

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

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Thanks for the reply Sue.

I've never interacted with a machine registry through VBA before. Would it
be possible for you to show me how I would go about altering this key in code
please.

TIA.
 
There are lots of different approaches to working with the registry; just Google for something like "VBA registry."

But again, changing the registry value from Outlook VBA won't affect the current user's experience.

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

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