• Outlook VBA

    Author
    Topic
    #1773422

    We have a “special character” floating palette that we use in Outlook. I want to restrict the display of this to HTML email messages. I am using the following code to exclude Plain Text emails:

    Code:
    If ActiveInspector.EditorType  olEditorHTML Then

    Regardless of the setting for formatting email messages (File|Options|Mail), the above statement always proves TRUE (i.e. NOT an HTML message).

    Code:
    ? ActiveInspector.EditorType

    in the Immediate Window always returns 4 (olEditorWord). I suppose that is because Word is always the editor in Outlook 2010. I’m looking to determine the text mode as indicated in the title bar of the inspector (HTML, Plain Text, RTF).

    Maybe I’m not using the correct test criteria (Outlook 2010). My Outlook VBA skills are limited. Can someone assist?

    Many thanks.

    Reply To: Outlook VBA

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: