The error trap in one of my macros was not working but I could see nothing wrong with it, so I created a small macro to test the basic trap and it did not work – but it works fine on another computer. Both computers are using the same version (SP-3) of Excel.
Here’s the test macro:
Sub xxx()
On Error GoTo BugCheck
Windows(“xfhxfh.xls”).Activate
GoTo AllsWell
BugCheck:
MsgBox (“There’s no such file.”)
AllsWell:
On Error GoTo 0
End Sub
Any thoughts?