Word 2013 VBA - opening document aborts macro
问题 I'm running pretty simple VBA in Word: Sub Something On Error GoTo prob Dim d As Document Set d = Documents.Open(FileName:="c:\ajb files\test.docx") 'this should run if macro succeeds MsgBox "ok" Exit Sub 'this should run if macro fails prob: MsgBox "prob" End Sub This macro opens the Word document then stops (without triggering an error message). I tried running the same macro in Word 2010 and it works fine. I haven't got an Acer laptop, or any weird anti-virus or other software running. I