Explorer.WindowState (Outlook)

Returns or sets the property with a constant in the OlWindowState enumeration specifying the window state of an explorer or inspector window. Possible return values are olMaximized - The window is maximized, olMinimized - The window is minimized, olNormalWindow - The window is in the normal state (not minimized or maximized).


Sub MinimizeWindows() 
 
 Dim myOlExp As Outlook.Explorer 
 
 Dim myOlExps As Outlook.Explorers 
 
 
 
 Set myOlExps = Application.Explorers 
 
 For x = 1 To myOlExps.Count 
 
 myOlExps.Item(x).WindowState = olMinimized 
 
 Next x 
 
End Sub