>With TRY...CATCH...FINALLY inside?
If you're trying to catch it while doing something it shouldn't, sure. Also make sure you log whatever you can so you'd know what's going on. Timing related bugs are very nasty and hard to catch anyway, so any clue which may help trace the killer is welcome.
If it's timing, then you may try to insert a DoEvents, an API call to sleep() or some other technique to delay execution.
>>>If I have a block of a troubling code and I want to see if a timing of its execution is an issue can I use TRY...CATCH...FINALLY to run it and then if it fails simply run it again for a couple of times whether the same code would eventually work?
>>>
>>>Thanks
>>
>>No, but you can do a Do-While loop.