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 一些陳述式
End Sub