Explorers 属性

       

返回 Explorers 集合对象,该对象包含代表所有打开的浏览器的 Explorer 对象。

expression.Explorers

expression  必选。该表达式返回 Application 对象。

示例

以下 Microsoft Visual Basic 示例显示打开的浏览器窗口的数目。

Dim myOlApp As New Outlook.Application
Private Sub Command1_Click()
    MsgBox "There are " & _
         myOlApp.Explorers.Count & " Explorers."
End Sub

如果使用 VBScript,则不必声明 Application 对象变量。本示例说明如何使用 VBScript 执行相同任务。

Sub CommandButton1_Click()
    MsgBox "There are " & _
        Application.Explorers.Count & " Explorers."
End Sub