Collabora Office 23.05 Help
Defines a subroutine.
[Private | Public] Sub name[(argument1 [As typename][, argument2[char][,...]])]
' statements
[Exit Sub]
' statements
End Sub
name: Name of the subroutine.
arguments: Optional parameters that you want to pass to the subroutine.