6Controlling Your VBA Code
IN THIS CHAPTER
Using If ...Then
to Make True/False Decisions
Using If...Then...Else
to Handle a False Result
One of the advantages of writing your own VBA procedures instead of simply recording them is that you end up with much more control over what your code does and how it performs its tasks. In particular, you can create procedures that make decisions based on certain conditions and that can perform loops—the running of several statements repeatedly. The statements ...
Get Business Solutions VBA for the 2007 Microsoft Office System now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.