Quote:
Originally Posted by Erel
You are probably missing an End If or a Then.
Download the code file (attached in the first post) and try to compare it to your code.
|
Er, no, actually it is the extended example that is wrong. An extra End If has been included, possibly because the layout made it look like one was needed. The final If is attached to the Else, being on a new line doesn't change that, so only one End If is needed.
If there were an ElseIf (or similar) keyword, then using Else If would start a new If statement, but there isn't.
Hope this helps.