Functions and Procedures
In computing, procedures perform an operation and have an effect; functions perform an operation and return a value
Visual Basic has both, but we concentrate on procedures because of our programming style
Procedure Functions
Header key words Sub Name() Function Name() As Type
Trailer key words End Sub End Function
Parameters are listed in parentheses
The main difference is a function can return a value (whatever is assigned to its name), and so must have a type for the result given in the header