Try insert an EndIf an the end and see whether that helps ?
Please notice : if it helps, your code most probably won’t do what you want, but at least you then know it is about an Endif missing somewhere.
It could also be about a Next or Wend missing. … Difficult to troubleshoot …
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue