Too much code. To little information.Remove the on-error and let Excel tell you where the problem is.