[Private | Public | Friend | Static] Sub procedureName([arglist]) [statements] End Sub
The Sub statement declares a procedure that performs a task but does not return a value. A Sub can take zero or more arguments and can be defined at the module, class, or form level.
A Sub procedure is called using either the Call statement or by using its name directly. It is commonly used for code that performs actions, such as manipulating controls, validating input, or responding to events.