End Instruction
Syntax
End
Group
Description
The end instruction causes the macro to terminate immediately. If the macro was run by another macro using the MacroRun instruction then that macro continues on the instruction following the MacroRun.
Example
Sub DoSub L$ = UCase$(InputBox$("Enter End:")) If L$ = "END" Then End Debug.Print "End was not entered." End Sub Sub Main Debug.Print "Before DoSub" DoSub Debug.Print "After DoSub" End Sub