Export (0) Print
Expand All

Application.DefaultWebOptions Method (Word)

Returns the DefaultWebOptions object that contains global application-level attributes used by Microsoft Word whenever you save a document as a Web page or open a Web page.

expression .DefaultWebOptions

expression Required. A variable that represents an Application object.

Return Value


This example checks to see whether the default setting for document encoding is Western, and then it sets the string strDocEncoding accordingly.

Dim strDocEncoding As String 
If Application.DefaultWebOptions.Encoding _ 
 = msoEncodingWestern Then 
 strDocEncoding = "Western" 
 strDocEncoding = "Other" 
End If
© 2014 Microsoft