Question: what is the difference between sub procedure and function in vba?
Answer: The main difference between a VBA Function procedure and a Sub procedure is that a Function procedure returns a result, whereas a Sub procedure does not.