L
Luke Bailey
Hello,
I have several Excel Templates that open on automated PC using scheduled
tasks. The templates run through a series of code. The templates all work
fine on my laptop. However, they are often times running into a "Code
Execution Has Been Interrupted" error on my desktop PC running the scheduled
tasks. There is nothing wrong in the code (runs fine from other PC's).
Keystrokes are not entered on the desktop that would stop execution of the
code, I have checked References.... Can't find anything wrong. Furthermore,
the code execution stops at different places in the same workbook. It's
being interupted at places like a "DOEVENTS" statement or an ".end with"
where you don't normally expect any problem. I have found a fix to be
(sometimes) to copy all code out to Word. Remove code from original temlate,
then insert new modules and paste the code. This solves the problem
sometime. Sometimes not. I've also found Dave Bovey's Code Cleaner to do a
great job. My question is, can anyone tell me why this occurs? And are
there any other recommended solutions?
I have several Excel Templates that open on automated PC using scheduled
tasks. The templates run through a series of code. The templates all work
fine on my laptop. However, they are often times running into a "Code
Execution Has Been Interrupted" error on my desktop PC running the scheduled
tasks. There is nothing wrong in the code (runs fine from other PC's).
Keystrokes are not entered on the desktop that would stop execution of the
code, I have checked References.... Can't find anything wrong. Furthermore,
the code execution stops at different places in the same workbook. It's
being interupted at places like a "DOEVENTS" statement or an ".end with"
where you don't normally expect any problem. I have found a fix to be
(sometimes) to copy all code out to Word. Remove code from original temlate,
then insert new modules and paste the code. This solves the problem
sometime. Sometimes not. I've also found Dave Bovey's Code Cleaner to do a
great job. My question is, can anyone tell me why this occurs? And are
there any other recommended solutions?