Minimizing the Outlook Window in Code

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?
 
S

Sue Mosher [MVP-Outlook]

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
 
Top