Class EmailOptions (Word VBA)

Contains global application-level attributes used by Microsoft Word when you create and edit email messages and replies.


To use a EmailOptions class variable it first needs to be instantiated, for example

Dim eos as EmailOptions
Set eos = Application.EmailOptions

EmailOptions class variables can be set using the Application.EmailOptions procedure.


The following procedures in this class have been grouped together and are described on a separate theme page

Format with its procedures AutoFormatAsYouTypeApplyBorders, AutoFormatAsYouTypeApplyBulletedLists, AutoFormatAsYouTypeApplyClosings, AutoFormatAsYouTypeApplyDates, AutoFormatAsYouTypeApplyFirstIndents, AutoFormatAsYouTypeApplyHeadings, AutoFormatAsYouTypeApplyNumberedLists, AutoFormatAsYouTypeApplyTables, AutoFormatAsYouTypeAutoLetterWizard, AutoFormatAsYouTypeDefineStyles, AutoFormatAsYouTypeDeleteAutoSpaces, AutoFormatAsYouTypeFormatListItemBeginning, AutoFormatAsYouTypeInsertClosings, AutoFormatAsYouTypeInsertOvers, AutoFormatAsYouTypeMatchParentheses, AutoFormatAsYouTypeReplaceFarEastDashes, AutoFormatAsYouTypeReplaceFractions, AutoFormatAsYouTypeReplaceOrdinals, AutoFormatAsYouTypeReplacePlainTextEmphasis, AutoFormatAsYouTypeReplaceQuotes, AutoFormatAsYouTypeReplaceSymbols, ComposeStyle, NewColorOnReply, PlainTextStyle, ReplyStyle, UseThemeStyle and UseThemeStyleOnReply


AutoFormatAsYouTypeReplaceHyperlinks true if email addresses, server and share names (also known as UNC paths), and Internet addresses (also known as URLs) are automatically changed to hyperlinks as you type.

Application.EmailOptions.AutoFormatAsYouTypeReplaceHyperlinks = True

EmailSignature returns an EmailSignature object that represents the signatures Microsoft Word appends to outgoing email messages.

Dim eseEmailSignature As EmailSignature
Set eseEmailSignature = Application.EmailOptions.EmailSignature

HTMLFidelity strips HTML tags used for opening HTML files in Word but not required for display.

Application.EmailOptions.HTMLFidelity = wdEmailHTMLFidelityHigh

MarkComments true if Microsoft Word marks the user's comments in email messages.

Application.EmailOptions.MarkComments = True

MarkCommentsWith returns or sets the string with which Microsoft Word marks comments in email messages.

Application.EmailOptions.MarkCommentsWith =

Parent returns an object that represents the parent object of the specified EmailOptions object.

Dim objParent As Object
Set objParent = Application.EmailOptions.Parent

RelyOnCSS true if cascading style sheets (CSS) are used for font formatting when you view a saved document in a web browser.

Application.EmailOptions.RelyOnCSS = True

TabIndentKey true if the TAB and BACKSPACE keys can be used to increase and decrease, respectively, the left indent of paragraphs and if the BACKSPACE key can be used to change right-aligned paragraphs to centered paragraphs and centered paragraphs to left-aligned paragraphs.

Application.EmailOptions.TabIndentKey = True

ThemeName returns or sets the name of the theme plus any theme formatting options to use for new email messages.

Application.EmailOptions.ThemeName =