Errors can show up on End Function if you forget an EndIf, Next, Wend, Until etc.
Putting debug mode on is not going to help you find the problem. Its a case of going through your function and finding it yourself. That shouldn't be too difficult if your code is properly indented.
Putting debug mode on is not going to help you find the problem. Its a case of going through your function and finding it yourself. That shouldn't be too difficult if your code is properly indented.