Partager via


DefaultWebOptions.BrowserLevel Property (Word)

Returns or sets a WdBrowserLevel constant that represents the level of the Web browser for which you want to target new Web pages created in Microsoft Word. Read/write.

Syntax

expression .BrowserLevel

expression Required. A variable that represents a DefaultWebOptions collection.

Remarks

After you set the BrowserLevel property on the DefaultWebOptions object, the BrowserLevel property of any new Web pages you create in Word will be the same as the global setting.

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

See Also

Concepts

DefaultWebOptions Object Members

DefaultWebOptions Object