Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open Outlook Minimized or Maximized ? 2

Status
Not open for further replies.

vfp7guy

Programmer
Jul 2, 2002
45
CA
For our email communication, We open MS-Outlook with the following code:

&&---------------------------------------
PUBLIC loOutlook as Object, loNameSpace as Object, loFolder as Object
loOutlook = CREATEOBJECT("Outlook.Application")
loNameSpace = loOutlook.GetNameSpace("MAPI")
loFolder = loNameSpace.GetDefaultFolder(6)
loFolder.Display
&&---------------------------------------

Can somebody please help me control whether we open it Minimized or Maximized. Thanks in advance.
 
loOutlook.Explorers.Item(1).WindowState =
0 && Maximixed
1 && Minimized
2 && Normal

pamela
 
Thanks Pamela ... I tried putting it before the DISPLAY, but that generated an error. However, putting it after the display worked OK to minimize it. I would prefer to actually open it minimized to avoid repainting the screen, but I will have to play with that...

Quick question for you ... is there on-line access to any descriptions of the Outlook object Props/Events/Methods ? I can get some view with the object browser but some descriptions would be helpful.
Thanks for responding ... was a great help ... definitely worth a star.
 
is there on-line access to any descriptions of the Outlook object Props/Events/Methods

In Outlook select Tools\Macro\Visual Basic Editor. Once VBA is open, invoke Help. Now the help file references the PEMS of Outlook.

pamela
 
Thanks Ilyad for the link.
Thanks a lot Pamela for your tip ... very much appreciated.
These links really helped a lot.

Roy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top