WebOptions.TargetBrowser Property (PowerPoint)
Represents the browser used with the active presentation in Microsoft PowerPoint. Read/write.
Syntax
expression .TargetBrowser
expression A variable that represents a WebOptions object.
Return Value
MsoTargetBrowser
Remarks
The value of the TargetBrowser property can be one of these MsoTargetBrowser constants.
msoTargetBrowserIE4 |
msoTargetBrowserIE5 |
msoTargetBrowserIE6 |
msoTargetBrowserV3 |
msoTargetBrowserV4 |
Example
This example sets the target browser for the active presentation to Microsoft Internet Explorer 6, if the current target browser is an earlier version.
Sub SetWebBrowser()
With ActivePresentation.WebOptions
If .TargetBrowser < msoTargetBrowserIE6 Then
.TargetBrowser = msoTargetBrowserIE6
End If
End With
End Sub
This example sets the target browser for all presentations to Internet Explorer 6.
Sub GlobalTargetBrowser()
Application.DefaultWebOptions _
.TargetBrowser = msoTargetBrowserIE6
End Sub