Sub Statement
Defineix una subrutina.
Sintaxi
Sub Name[(VarName1 [As Type][, VarName2 [As Type][,...]])]
bloc d'expressió
End Sub
Paràmetres:
Name: Name of the subroutine.
VarName: Parameter that you want to pass to the subroutine.
Type: Paraula clau de la declaració de tipus.
Exemple:
Sub Example
' algunes expressions
End Sub