program to close Outlook if opened

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to install an Outlook add-on for users via SMS package but it requires
Outlook to be closed first. How can I create a program (vb script or batch)
to close Outlook if it's running? Any sample I can use?

Thanks,
 
Use GetObject to see if you get an instance of a running Outlook object. If
you do then call the Quit method on the object you get back from GetObject.
 

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

Back
Top