Partager via


_Application.ActiveExplorer Method

Returns the topmost Explorer object on the desktop.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Function ActiveExplorer As Explorer
'Usage
Dim instance As _Application
Dim returnValue As Explorer

returnValue = instance.ActiveExplorer()
[DispIdAttribute()]
Explorer ActiveExplorer()

Return Value

Type: Microsoft.Office.Interop.Outlook.Explorer
An Explorer that represents the topmost explorer on the desktop. Returns Nothing if no explorer is active.

Remarks

Use this method to return the Explorer object that the user is most likely viewing. This method is also useful for determining when there is no active explorer, so a new one can be opened.

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Outlook Namespace