Main Help → All Commands → Language Reference → EndSub
The EndSub command defines the end of a subroutine.
EndSub