How to Maximize the Outlook email app window on opening (even better - when selecting)

  • Thread starter Thread starter Avraham Makeler
  • Start date Start date
A

Avraham Makeler

Hi all,

I would like to know how I can maximize the email application window when
the user opens it (or even better - when selecting its entry from the list
of email titles in InBox ).

I have tried putting the following function in the ThisDocument module for
email I am sending out:

Private Sub Document_Open()
ThisDocument.ActiveWindow.WindowState = wdWindowStateMaximize
End Sub

When I run it within the VBA environment it maximizes the email, but not
when I simply open the email from within a folder.

2. What if the recipient has not enabled handling emails with Word? Does VBA
still work?

3. Every now and again I get a situation where my PC tells me that it can't
run macros because security has been disabled. I have set security to Low
and so it should not be a problem.

tia

Avraham Makeler.
 
To make it work in Word when opening an item you'd need to make it an
autorun macro for Word. If not using Word you'd need to code using Outlook
VBA, probably setting up an event handler for the NewInspector event,
checking that it's an item you want (Outlook.MailItem) and then using
Inspector.WindowState = olMaximized. Outlook doesn't have a macro recorder
so you'd have to code it entirely in VBA code.

See http://www.outlookcode.com/d/vb.htm for information to get you started
and for example code you can modify to do what you want.
 
Thanks Ken.

Thanks in particular for the reference.

Yes, I was going to use VBA.

Regards.

Avraham.
 
Back
Top