Why do I get this error then it highlights End Sub?
Printable View
Why do I get this error then it highlights End Sub?
I think you should spend a little time and indent your code. Then you may easily see where you are missing an End If.
Code:If ....
Else
If ....
ElseIf ....
Else ....
If ...
End If
End If
End If