TargetBrowser Property
Returns or sets an MsoTargetBrowser constant indicating which Web browser is the intended target for the specified data access page or for all data access pages. Read/write.
MsoTargetBrowser can be one of these MsoTargetBrowser constants. |
msoTargetBrowserIE4 Microsoft Internet Explorer version 4. |
msoTargetBrowserIE5 Internet Explorer version 5. |
msoTargetBrowserIE6 Internet Explorer version 6. |
msoTargetBrowserV3 Netscape Navigator version 3. |
msoTargetBrowserV4 Netscape Navigator version 4. |
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 data access page to Microsoft Internet Explorer 6 if the current target browser is an earlier version of Internet Explorer.
With Screen.ActiveDataAccessPage.WebOptions
If .TargetBrowser = msoTargetBrowserIE4 Or _
.TargetBrowser = msoTargetBrowserIE5 Then
.TargetBrowser = msoTargetBrowserIE6
End If
End With
This example sets the target browser for all data access pages to Internet Explorer 6.
Application.DefaultWebOptions _
.TargetBrowser = msoTargetBrowserIE6