How to close Outlook from Access VBA code

M

Marco

Hi. Does anyone knows how to close outlook from a access VBA command line?

Thanks,
Marco
 
M

MikeB

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top