View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
ajliaks[_34_] ajliaks[_34_] is offline
external usenet poster
 
Posts: 1
Default VBA - Closing Outlook

Hi all

I need to open Outlook an then closing it.
Opening function works well, but I do not know how to close it.

Could anyone help?
Thanks, Aldo.

I am using this:
'This is working well
Function OpeningOutlookInSelectedFolder()
Application.ActivateMicrosoftApp (xlMicrosoftMail)
End Function

'This is not working
Function ClosingOutlook()
Application.Close
End Functio

--
Message posted from http://www.ExcelForum.com