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 removed all Word add-ins, and the problem still happens.
If I go straight into Word and run this macro, it works fine. The problem comes when I first run a macro in Access which tries to run this code through Word VBA, and seizes up on the line above. If I then try to run the macro without first closing Word, it hangs after opening the document.