Each piece of data is passed in your process using an argument. Arguments serve like placeholders for the data you wish to pass into your process. You can name your arguments along with any valid variable name. While you create a procedure via either the Sub statement or the Function statement, parentheses have to be included after the name of the procedure. Any arguments are placed within these parentheses, separated by commas. For instance, in the following instance, fDegrees is a placeholder for the value being passed in the Celsius function for conversion:
Function Celsius(fDegrees)
Celsius = (fDegrees - 32) * 5 / 9
End Function
To get data out of a process, you have to use a Function. keep in mind, a Function procedure can return a value; a Sub procedure cannot.