EmailOptions.RelyOnCSS property (Word)
True if cascading style sheets (CSS) are used for font formatting when you view a saved document in a web browser. Read/write Boolean.
expression Required. A variable that represents an 'EmailOptions' collection.
Microsoft Word creates a cascading style sheet file and saves it either to the specified folder or to the same folder as your webpage, depending on the value of the OrganizeInFolder property of the WebOptions or DefaultWebOptions object. This property returns False if HTML
<FONT> tags and cascading style sheets are used. The default value is True.
You should set this property to True if your web browser supports cascading style sheets because this will give you more precise layout and formatting control on your webpage and make it look more like your document (as it appears in Microsoft Word).
This example enables the use of cascading style sheets as the global default for the application.
Application.DefaultWebOptions.RelyOnCSS = True
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.