Outlook Code

  • Thread starter Thread starter 5elpep
  • Start date Start date
5

5elpep

Hi all,

I would be very grateful if someone could give me a line of code.
that will close the active message window. I have a macro which
forwards an e-mail to a number of recipients but I would prefer if
the window would then close automatically rather than having to
close it manually.

Thanks in advance.
 
Application.ActiveInspector.Close param

Look up Close in the object browser to see the different values the param can take, depending on the desired disposition of the item.

FYI, there is a newsgroup specifically for general Outlook programming issues "down the hall" at microsoft.public.outlook.program_vba or, via web interface, at http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.outlook.program_vba


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

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Thanks Sue.

Application.ActiveInspector.Close param

Look up Close in the object browser to see the different values the param can take, depending on the desired disposition of the item.

FYI, there is a newsgroup specifically for general Outlook programming issues "down the hall" at microsoft.public.outlook.program_vba or, via web interface, at http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.outlook.program_vba


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

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