Question: what is the difference between a sub procedure and a function?
Answer: In Visual Basic 2013, sub procedure is a procedure that performs a specific task and to return values, but it does not return a value associated with its name. ... A function is similar to a sub procedure in the sense that both are called by the main procedure to fulfill certain tasks.