CHAPTER 5
Creating Function Procedures
Sub Procedures vs. Function Procedures
A VBA Function
is a procedure that performs calculations and returns a value. You can use these functions in your Visual Basic for Applications (VBA) code or in worksheet formulas.
VBA enables you to create Sub
procedures and Function
procedures. You can think of a Sub
procedure as a command that either the user or another procedure can execute. Function
procedures, on the other hand, usually...