The Explorers collection contains views of all open folders.
Each open folder view is an Explorer object and has a CurrentFolder object, which is the folder
whose data is currently being displayed in the Explorer. The currently active Explorer object
is also available as the ActiveExplorer object.
Sub OL_Explorer_Collection()
Dim oExpo As Explorer
For Each oExpo In Explorers
MsgBox(oExpo.Caption)
Next
End Sub
When you open Outlook using code Explorers will be not be there and the count will be zero. Normally opening outlook will have one Explorer, which is the active explorer
An explorer need not be visible to be included in the Explorers collection.
Use the Explorers property to return the Explorers object from the Application object.
No comments:
Post a Comment