DefaultWebOptions.TargetBrowser Property
Represents the browser used with the active presentation in Microsoft Office PowerPoint. Read/write.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Property TargetBrowser As MsoTargetBrowser
Get
Set
'Usage
Dim instance As DefaultWebOptions
Dim value As MsoTargetBrowser
value = instance.TargetBrowser
instance.TargetBrowser = value
MsoTargetBrowser TargetBrowser { get; set; }
Property Value
Type: Microsoft.Office.Core.MsoTargetBrowser
MsoTargetBrowser
Remarks
The value of the TargetBrowser property can be one of these MsoTargetBrowser constants.
msoTargetBrowserIE4 |
msoTargetBrowserIE5 |
msoTargetBrowserIE6 |
msoTargetBrowserV3 |
msoTargetBrowserV4 |
Examples
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