-
Scott Chou 96 Reputation points
2021-04-16T04:24:46.943+00:00 I found the problem and it appears to be a rookie mistake on my part. The yellow highlighted debugger stopping point at the subroutine header was a coincidence. The error was INside the subroutine. A very straightforward ByRef error
Sorry and thanks for your time!
This code looks OK to me. The problem may be somewhere else. Set breakpoints and carefully step through.
You do have Option Explicit in place per best practices, and your code does compile (Debug > Compile), correct?