DefaultWebOptions.OptimizeForBrowser Property

Word Developer Reference

True if Microsoft Word optimizes new Web pages created in Word for the Web browser specified by the BrowserLevel property. Read/write Boolean.

Syntax

expression.OptimizeForBrowser

expression   Required. A variable that represents a DefaultWebOptions collection.

Example

This example sets Word to optimize new Web pages for Microsoft Internet Explorer 5 and creates a Web page based on this setting.

Visual Basic for Applications
  With Application.DefaultWebOptions
    .BrowserLevel _
        = wdBrowserLevelMicrosoftInternetExplorer5
    .OptimizeForBrowser = True
End With
Documents.Add DocumentType:=wdNewWebPage

See Also