Programming Reference Manual
 
Syntax
 
End
 
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.
See Also
 
Example
 
Sub DoSub
L$ = UCase$(InputBox$("Enter <span style='color: #0000FF; font-weight: bold;'>End</span>:"))
If L$ = "END" Then End
Debug.Print "<span style='color: #0000FF; font-weight: bold;'>End</span> was not entered."
End Sub
 
Sub Main
Debug.Print "Before DoSub"
DoSub
Debug.Print "After DoSub"
End Sub