Explorers Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Returns an Explorers collection object that contains the Explorer objects representing all open explorers.

expression.Explorers

expression   Required. An expression that returns an Application object.

Example

The following Microsoft Visual Basic example displays the number of explorer windows that are open.

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

If you use VBScript, you do not declare an Application object variable. This example shows how to perform the same task using VBScript.

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