R
ronaldnotestine
In MS Excel Subs, I cannot turn off error dialogs using 'On Error Resume
Next' or 'On Error Goto label' etc.
It was not always thus. Once, I happily used utility subs that with 'On
Error Resume Next' lines, many from John Walkenbach's book. Then,
suddenly, these macros suddenly rebelled, halting execution at the
first error, and displaying the "index out of range error dialog
window"...the one that lets you click a debug button to go to the code
in the VBE.
I have rewritten all macros to avoid any sort of error handling. But,
it sure would be nice to handle them again.
sample macro:
Sub testErrHandling()
On Error Resume Next
ActiveWorkbook.Sheets("BogusWSName").Activate 'No such worksheet
End Sub
Produces runtime error 9 (If I translate the Japanese correctly) But,
produces no error if run on one of the lab computers at my university.
(Office XP running on Win2000 network, both Japanese version.)
I am running Japanese Office 2003 on Japanese WinXP Pro on an NEC LaVie
C LC900/3 laptop with 512 mb RAM. The condition has persisted through
an upgrade from Office XP(J) to Office 2003(J)
Have I overlooked some simple setting? (I all too oten do overlook the
painfully obvious.) I would be very grateful if anyone is able to share
any ideas on this. Thank you.
Next' or 'On Error Goto label' etc.
It was not always thus. Once, I happily used utility subs that with 'On
Error Resume Next' lines, many from John Walkenbach's book. Then,
suddenly, these macros suddenly rebelled, halting execution at the
first error, and displaying the "index out of range error dialog
window"...the one that lets you click a debug button to go to the code
in the VBE.
I have rewritten all macros to avoid any sort of error handling. But,
it sure would be nice to handle them again.
sample macro:
Sub testErrHandling()
On Error Resume Next
ActiveWorkbook.Sheets("BogusWSName").Activate 'No such worksheet
End Sub
Produces runtime error 9 (If I translate the Japanese correctly) But,
produces no error if run on one of the lab computers at my university.
(Office XP running on Win2000 network, both Japanese version.)
I am running Japanese Office 2003 on Japanese WinXP Pro on an NEC LaVie
C LC900/3 laptop with 512 mb RAM. The condition has persisted through
an upgrade from Office XP(J) to Office 2003(J)
Have I overlooked some simple setting? (I all too oten do overlook the
painfully obvious.) I would be very grateful if anyone is able to share
any ideas on this. Thank you.