Question: what is the difference between a sub procedure and a function in visual basic?
Answer: A sub performs a task but does not return a value. A function returns a value of the tasks performed. Subs can be recalled from anywhere in the program and in multiple types. Functions are called by a variable.