ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Network error (https://www.excelbanter.com/excel-programming/281710-network-error.html)

lin

Network error
 
Does nayone know how to trap a Windows Error
the error message contains this

Network I/O Error

I want to trap this error but the regular error handler
does not work.

Is there a way to trap System or Window Errors when they
occur.
thanks Sirron

Jake Marx[_3_]

Network error
 
Hi Sirron,

What VBA code are you executing when you get this error? I think that's a
Jet error. Anyway, some context to your problem would be helpful.

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]


lin wrote:
Does nayone know how to trap a Windows Error
the error message contains this

Network I/O Error

I want to trap this error but the regular error handler
does not work.

Is there a way to trap System or Window Errors when they
occur.
thanks Sirron



Angus Comber[_2_]

Network error
 
How about:

On Error Resume Next


code which causes error
select case err.number
case 111
do whatever
etc

Angus


"lin" wrote in message
...
Does nayone know how to trap a Windows Error
the error message contains this

Network I/O Error

I want to trap this error but the regular error handler
does not work.

Is there a way to trap System or Window Errors when they
occur.
thanks Sirron





All times are GMT +1. The time now is 05:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com