ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Device I/O Error (https://www.excelbanter.com/excel-programming/438692-device-i-o-error.html)

Sam

Device I/O Error
 
Using Excel 2007. I frequently get a Visual Basic Error "Device I/O Error"
when opening an application that I designed. Most of the designs were
originated in Excel 2003. Sometimes the error box appears upon opening the
application. When I click OK, and click on another cell in the same
worksheet, the error re-appears. This may continue 4 or 5 times and then it
is fine. Almost every time this occurs, Excel crashes within 5 or 10 minutes.
After I reload the application, it is fine. I believe all the errors occur on
apps that have a Workbook_Open event or Worksheet_Change event. However, it
is not consistent, happening 50% of the time or less.

Any advice would be appreciated since it is a major nuisance.

Thanks in advance.

Sam

ker_01

Device I/O Error
 
Post your code. If you think the problem is related to Workbook_Open event
and Worksheet_Change, post just those for starters.

Without knowing what your code does, it is unlikely that anyone will be
able to help you troubleshoot. Are you doing database calls? Listening on a
serial port? Trying to connect to a network drive? Connecting to a printer or
driver? Grabbing web pages?

"Sam" wrote:

Using Excel 2007. I frequently get a Visual Basic Error "Device I/O Error"
when opening an application that I designed. Most of the designs were
originated in Excel 2003. Sometimes the error box appears upon opening the
application. When I click OK, and click on another cell in the same
worksheet, the error re-appears. This may continue 4 or 5 times and then it
is fine. Almost every time this occurs, Excel crashes within 5 or 10 minutes.
After I reload the application, it is fine. I believe all the errors occur on
apps that have a Workbook_Open event or Worksheet_Change event. However, it
is not consistent, happening 50% of the time or less.

Any advice would be appreciated since it is a major nuisance.

Thanks in advance.

Sam



All times are GMT +1. The time now is 11:38 PM.

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