ActiveExplorer Method Example

This Visual Basic for Applications example uses ActiveExplorer to demonstrate how to obtain an Explorer object for use, preferably getting the user's active explorer, but creating a new one for myFolder if there isn't already one on the desktop.

Set myOlApp = CreateObject("Outlook.Application")
Set myExplorer = myOlApp.ActiveExplorer
If TypeName(myExplorer) = "Nothing" Then
    Set myExplorer = myFolder.GetExplorer
End If