Compartir a través de


WebOptions.OptimizeForBrowser Property

Word Developer Reference

True if Word optimizes the specified Web page for the Web browser specified by the BrowserLevel property. Read/write Boolean.

Syntax

expression.OptimizeForBrowser

expression   Required. A variable that represents a WebOptions collection.

Example

This example creates a new Web page and optimizes it for Microsoft Internet Explorer 5.

Visual Basic for Applications
  Documents.Add DocumentType:=wdNewWebPage
With ActiveDocument.WebOptions
    .BrowserLevel  = wdBrowserLevelMicrosoftInternetExplorer5
    .OptimizeForBrowser = True
End With

See Also