O'Reilly logo

Excel® 2007 Power Programming with VBA by John Walkenbach

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required