Building VBA Expressions
A procedure or function is merely a lifeless collection of Dim statements until you define some kind of relationship among the variables and your program objects.
To establish these relationships, you need to create expressions that perform calculations and produce results. This tutorial takes you through some expression basics and shows you a number of techniques for building powerful expressions using not only variables, but also VBA's built-in functions.