FractalWalk
Technical User
I'm using a macro in Word 2002 that pulls data off the web. Ideally, the code will loop 100,000 times (to pull 100,000 pages). However, at seemingly random times, the target page can't be opened and I get an error message that states the file name or path is invalid. This error doesn't just interrupt the code, it completely stops the macro. This occurs in both Wondows 2000 and Windows 98.
I have placed Application.DisplayAlerts=False into the code and an Error Handler to continue looping when an error occurs, but that doesn't help this particular error. The message still pops up and kills the code.
The error itself is a bit of a mystery to me as the target address exists and when I manually access it, it loads just fine. In other words both the file name and path are valid. A search on the web for this error found some info about disabling Smart tags but that didn't help either. Perhaps it is a connectivity issue.
Assuming that the error itself can't be avoided, I need a fix to prevent the error from stopping the code.
I have placed Application.DisplayAlerts=False into the code and an Error Handler to continue looping when an error occurs, but that doesn't help this particular error. The message still pops up and kills the code.
The error itself is a bit of a mystery to me as the target address exists and when I manually access it, it loads just fine. In other words both the file name and path are valid. A search on the web for this error found some info about disabling Smart tags but that didn't help either. Perhaps it is a connectivity issue.
Assuming that the error itself can't be avoided, I need a fix to prevent the error from stopping the code.