Please provide details on exactly how it is failing. What is not happening that you think should happen?
You can also try temporariliy commenting out the "On Error Resume Next" statement. If an exception is being thrown, that statement will result in the code trying to execute the next line rather than displaying the error.
You can also try temporariliy commenting out the "On Error Resume Next" statement. If an exception is being thrown, that statement will result in the code trying to execute the next line rather than displaying the error.