Propiedad WebOptions.TargetBrowser (Excel)

Devuelve o establece una constante MsoTargetBrowser que indica la versión del explorador. Lectura y escritura.

Sintaxis

expresión. TargetBrowser

Expresión Variable que representa un objeto WebOptions .

Ejemplo:

En este ejemplo, Microsoft Excel determina si la versión del explorador para las opciones web es Internet Explorer 5 y lo notifica al usuario.

Sub CheckWebOptions() 
 
    Dim wkbOne As Workbook 
 
    Set wkbOne = Application.Workbooks(1) 
 
    ' Determine if IE5 is the target browser. 
    If wkbOne.WebOptions.TargetBrowser = msoTargetBrowserIE5 Then 
        MsgBox "The target browser is IE5 or later." 
    Else 
        MsgBox "The target browser is not IE5 or later." 
    End If 
 
End Sub

Soporte técnico y comentarios

¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.