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 …
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok