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