NetNodeMan
Technical User
I'm trying to get my code to increment but the only thing incrementing seems to be the number of times I'm banging my head off the table here:
Sub objIE_NavigateError(pDisp,URL,TargetFrameName,StatusCode,Cancel)
internetError = internetError + 1
wshell.popup "Failure when loading"
createobject("wscript.shell").run "WebTest.bat"
End Sub
if internetError <>0 and internetError Mod 3 = 0 then
wshell.popup "Failure when loading more than 3 times"
createobject("wscript.shell").run "WebTracker.bat"
end if
I have my code laid out so it writes internetError to a log. internetError is set as a dim and equalled to 0 elsewhere in my code BUT:
internetError always = 0 when printed to the log. Can anyone tell me where I'm going wrong? Code is welcomed![]()