End (statement)

Syntax

End

Description

Terminates execution of the current script, closing all open files.

Example

This example uses the End statement to stop execution.

Sub Main()
  MsgBox "The next line will terminate the script."
  End
End Sub

See Also

Close (statement); Stop (statement); Exit For (statement); Exit Do (statement); Exit Function (statement); Exit Sub (function).

More information

E