Sub Statement

서브루틴을 지정합니다.

구문

Sub Name[(VarName1 [As Type][, VarName2 [As Type][,...]])]

문 블록

End Sub

매개 변수:

Name: Name of the subroutine.

VarName: Parameter that you want to pass to the subroutine.

Type: 유형 선언 키워드입니다.

예:

Sub Example

    REM some statements

End Sub