Getting Outlook out of the tray

D

derobins

Hi,

I have no problem getting Outlook into the tray with
Outlook.ActiveWindow.WindowState = olMinimized

But how can I maximize from this state? olMaximized produces me an
error...

Thx!
 
D

derobins

Have you tried ActiveExplorer.WindowState = olMaximized?
Yes, I did, I gives me an error.
I believe the problem is that OL is minimized to the tray (next to the
clock) and not to the taskbar...
Anyone?
 
S

Sue Mosher [MVP-Outlook]

What error? What is the value of Application.Explorers.Count and Application.Inspectors.Count?
 
D

derobins

Thanks for your posting, Sue. The fact that Explorers.Count brought me
the value 1, I was able to solve my problem: The command that I was
looking for was Application.ActiveExplorer.Display.
 
Top