"End" will end everything. What are you actually wanting to end?
"End If" needs the keyword "If"
"Exit Sub" or "Exit Function" to exit a sub or a function
etc.
Post more of the code and tell us what is actually supposed to happen where
you have your "End" statement.
Also, have you compiled the project to make sure it has no syntax errors in
it?