I have a very long (> 2 hr) macro that shifts through thousands of files and creates a table of contents (more or less). Anyway, the program will operate just fine when I am also working at the same PC but if I walk away for an hour, Excel will sometimes generate an error. I believe that it has something to do with the PC going idle although it really isn't going idle because I turn off sleep and hibernate while running the macro. Also, the error does not seem to occur in the same place each time although it has happened at one point a couple times. See below:
I will get an automation error here (forgot to get the code).Please Login or Register to view this content.
Besides the power settings which are set to "High Performance" (i.e. no sleep, no HDD turn off, etc), is there something else in the PC that would cause this behavior? Something perhaps that is not controlled by the power control settings but still goes to sleep when the PC is idle.
Thanks,
Mark
Bookmarks