Application.ActiveWindow Method (Outlook)
Published: July 16, 2012
Returns an object representing the current Microsoft Outlook window on the desktop, either an Explorer
or an Inspector
A variable that represents an Application object.
An Object that represents the current Outlook window on the desktop. Returns Nothing if no Outlook explorer or inspector is open.
This Microsoft Visual Basic for Applications (VBA) example minimizes the topmost Outlook window if it is an inspector window.
If TypeName(Application.ActiveWindow) = "Inspector" Then
Application.ActiveWindow.WindowState = olMinimized