HTMLFidelity Property

Microsoft Word Visual Basic

Show All

HTMLFidelity Property

       

Strips HTML tags used for opening HTML files in Word but not required for display. Read/write WdEmailHTMLFidelity.

WdEmailHTMLFidelity can be one of these WdEmailHTMLFidelity constants.
wdEmailHTMLFidelityHigh  Leaves HTML intact.
wdEmailHTMLFidelityLow  Removes all HTML tags that do not affect how a message displays.

expression.HTMLFidelity

expression   Required. An expression that returns an EmailOptions object.

Example

This example keeps all HTML tags intact when sending e-mail messages.

Sub HTMLEmail()
    Application.EmailOptions _
        .HTMLFidelity = wdEmailHTMLFidelityHigh
End Sub