Sub Statement
Define uma sub-rotina.
Sintaxe
Sub Name[(VarName1 [As Type][, VarName2 [As Type][,...]])]
bloco de instruções
End Sub
Parâmetros:
Name: Name of the subroutine.
VarName: Parameter that you want to pass to the subroutine.
Tipo: palavra-chave da declaração de tipo.
Exemplo:
Sub Example
' algumas instruções
End Sub