This documentation is archived and is not being maintained.

Document.WebOptions Property

Office 2007
Returns the WebOptions object, which contains document-level attributes used by Microsoft Word when you save a document as a Web page or open a Web page. Read-only.

Syntax

expression.WebOptions

expression   A variable that represents a Document object.

Example

This example specifies that cascading style sheets and Western document encoding be used when items in the active document are saved to a Web page.

Visual Basic for Applications
Set objWO = ActiveDocument.WebOptions
objWO.RelyOnCSS = True
objWO.Encoding = msoEncodingWestern



Show: