EmailOptions.ThemeName property (Word)

Returns or sets the name of the theme plus any theme formatting options to use for new email messages. Read/write String.

Syntax

expression. ThemeName

expression A variable that represents a 'EmailOptions' object.

Remarks

For an explanation of the value returned by this property, see the Name argument of the ApplyTheme method. The value returned by this property may not correspond to the theme's display name as it appears in the Theme dialog box. To return a theme's display name, use the ActiveThemeDisplayName property.

You can also use the GetDefaultTheme and SetDefaultTheme methods to return and set the default theme for new email messages.

Example

This example sets Microsoft Word to use the Blueprint theme with Vivid Colors for all new email messages.

Application.EmailOptions.ThemeName = "blueprnt 100"

See also

EmailOptions Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.