BrowserLevel Property
As it applies to the DefaultWebOptions object.
Returns or sets a WdBrowserLevel that represents the level of the Web browser for which you want to target new Web pages created in Microsoft Word. Read/write.
WdBrowserLevel can be one of these WdBrowserLevel constants. |
wdBrowserLevelMicrosoftInternetExplorer6 |
wdBrowserLevelMicrosoftInternetExplorer5 |
wdBrowserLevelV4 |
expression.BrowserLevel
expression Required. An expression that returns a DefaultWebOptions object.
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.
As it applies to the WebOptions object.
Returns or sets WdBrowserLevel that represents the level of Web browser at which you want to target the specified Web page. This property is ignored if the OptimizeForBrowser property is set to False. Read/write.
WdBrowserLevel can be one of these WdBrowserLevel constants. |
wdBrowserLevelMicrosoftInternetExplorer6 |
wdBrowserLevelMicrosoftInternetExplorer5 |
wdBrowserLevelV4 |
expression.BrowserLevel
expression Required. An expression that returns a WebOptions obejct.
Example
As it applies to the DefaultWebOptions object.
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
As it applies to the WebOptions object.
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