Chapter 11. VBA Programming Examples and Techniques

In This Chapter

I believe that learning programming concepts is accelerated by a heavy emphasis on examples. And based on the feedback that I’ve received from readers of previous editions of this book, I have plenty of company. VBA programmers especially benefit from a hands-on approach. A well-thought-out example usually communicates a concept much better than a description of the underlying theory. I decided, therefore, not to write a reference book that painstakingly describes every nuance of VBA. Rather, I prepared numerous examples to demonstrate useful Excel programming techniques.

  • Examples of using VBA to work with ranges

  • Examples of using VBA to work with workbooks and sheets

  • Custom functions for use in your VBA procedures and in worksheet formulas

  • Examples of miscellaneous VBA tricks and techniques

  • Examples of using Windows Application Programming Interface (API) functions

The previous chapters in this part provide enough information to get you started. The Help system provides all the details that I left out. In this chapter, I pick up the pace and present examples that solve practical problems while furthering your knowledge of VBA.

Get Excel® 2007 Power Programming with VBA 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.