Close Down Outlook using VBA in Word

  reddwarfcrew 19:34 03 Jul 06
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 06

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 06

Did this work?

  reddwarfcrew 23:14 07 Jul 06

Didn't get to try it out until yesterday.

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

Surface Pro (2017) vs Surface Pro 4

20 groundbreaking 3D animation techniques

How to mine Bitcoin on Mac