Minimizing the Outlook Window in Code

  • Thread starter Thread starter Robert Jones
  • Start date Start date
R

Robert Jones

This is for Outlook 2000 and 2003

I can create an instance of outlook with

set gOutlookApp = CreateObject("Outlook.Application")

I can make the instance visible with

gOutlookApp.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Display

How can I now minimize the Outlook window?
 
gOutlookApp.ActiveExplorer.WindowState = olMinimized

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top