Close Down Outlook using VBA in Word

  reddwarfcrew 19:34 03 Jul 2006
Locked

Is it possible to use VB code in Word in order to close down Outlook XP if it is open?

Thanks

  VoG II 20:08 03 Jul 2006

This works in Excel

Sub Shut_It()
Dim objOutlk As Outlook.Application
Set objOutlk = CreateObject("Outlook.Application")
objOutlk.Quit
Set objOutlk = Nothing
End Sub

  VoG II 22:02 07 Jul 2006

Did this work?

  reddwarfcrew 23:14 07 Jul 2006

Didn't get to try it out until yesterday.

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Xiaomi Mi Mix 2 review

Halloween Photoshop & Illustrator tutorials: 20 step-by-step guides to creating spook-tacular…

iPhone X news: Release date, price, new features & specs

Comment créer, modifier et réinitialiser un compte Apple ?