WebOptions.TargetBrowser property (Word)
Sets or returns an MsoTargetBrowser constant representing the target browser for documents viewed in a web browser. Read/write.
Syntax
expression. TargetBrowser
expression Required. A variable that represents a WebOptions collection.
Example
This example sets the target browser for the active document to Microsoft Internet Explorer 6 if the current target browser is an earlier version.
Sub SetWebBrowser()
With ActiveDocument.WebOptions
If .TargetBrowser < msoTargetBrowserIE6 Then
.TargetBrowser = msoTargetBrowserIE6
End If
End With
End Sub
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for