Search notes:

VBA statement: end

The end statement immediately terminates the current execution. It is somewhat similar to the exit function/statement in other programming languages.
end also destroys all variables, even global ones: see here.

See also

The stop statement.
VBA statements

Index