If you want to debug for errors, you might want to get rid of On Error Resume Next so you can see if some other errors arise, ie. make sure the error isn't an error that you've made silent by using On Error Resume Next. At the moment you can't be 100% sure that the error is generated by a server lag.