Function procedure

A procedure that performs a specific task within a Microsoft Visual Basic program and returns a value. A Function procedure begins with a Function statement and ends with an End Function statement.