Does the last part of the loop that attempts to run produce any errors in the code?
prjObject.run
If Checkerror("Project.run") = True Then
Exit Sub
End If
If any errors crop up, then VBScript will terminate at that point, and won't run any further.
The CheckError function has a popup that's commented out - you could try removing that, and then you should get a popup at that point in the code which might help direct you to the error.
The difficulty you'll have in checking the EG logs is that the script will terminate before saving after it finds any error, so your project (and hence log files) will not be saved.
That said, if it's always at a particular point in the loop (i.e. for a certain value of "d") then you might be able to try running that part manually and see if you get the same issue.
... View more