How to close Outlook from Access VBA code

  • Thread starter Thread starter Marco
  • Start date Start date
Marco said:
Hi. Does anyone knows how to close outlook from a access VBA command line?


'Outlook has to be running first
Private Sub CloseOutlook()
Dim objOLook As Object
Set objOLook = GetObject(, "Outlook.Application")
objOLook.Application.Quit
End Sub
 
Back
Top