0

in Outlook 2013 I have created a rule for incoming messages which triggers a vba script. That script does run (MsgBox works) but in the vba editor no breakpoints are ever hit, nor does the Stop statement break execution.

Does anyone know how to enable vba breakpoints in Outlook 2013?

Thank you.

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Ian
  • 41
  • 4

1 Answers1

0

See if stepping through this is sufficient.

Sub TestScript()
    Dim testMail As MailItem
    Set testMail = Application.CreateItem(olMailItem)
    testMail.Subject = "Test subject"
    testMail.Body = "Test body"
    Project1.ThisOutlookSession.YourScriptForDebugging testMail
End Sub

From Debugging an Outlook 2007 script fired by a rule

Community
  • 1
  • 1
niton
  • 8,771
  • 21
  • 32
  • 52