TargetBrowser Property
Sets or returns an MsoTargetBrowser constant that represents the browser used with Microsoft PowerPoint. Read/write.
MsoTargetBrowser can be one of these MsoTargetBrowser constants. |
msoTargetBrowserIE4 |
msoTargetBrowserIE5 |
msoTargetBrowserIE6 |
msoTargetBrowserV3 |
msoTargetBrowserV4 |
expression.TargetBrowser
expression Required. An expression that returns one of the objects in the Applies To list.
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