property (for the DefaultWebOptions
object). True if Word optimizes the specified Web page for the Web browser specified by the BrowserLevel
property (for the WebOptions
object). Read/write Boolean.
expression.OptimizeForBrowser
expression Required. An expression that returns one of the objects in the Applies To list.
Example
This example sets Word to optimize new Web pages for Microsoft Internet Explorer 5 and creates a Web page based on this setting.
With Application.DefaultWebOptions
.BrowserLevel _
= wdBrowserLevelMicrosoftInternetExplorer5
.OptimizeForBrowser = True
End With
Documents.Add DocumentType:=wdNewWebPage
This example creates a new Web page and optimizes it for Microsoft Internet Explorer 5.
Documents.Add DocumentType:=wdNewWebPage
With ActiveDocument.WebOptions
.BrowserLevel _
= wdBrowserLevelMicrosoftInternetExplorer5
.OptimizeForBrowser = True
End With