Chapter 5. Creating Your Own Objects

Chapter 4 showed you how to use Excel’s objects; now you get to create your own. This chapter shows you how to define custom classes and instantiate objects from those classes to create in-memory representations of visual or functional elements.

In the process, I try to explain why you’d use classes and how you perform specific tasks that are unique to object-oriented programming. You’ll also learn how to send mail from Excel, which is kind of handy.

Tip

Code used in this chapter and additional samples are available in ch05.xls.

Get Programming Excel with VBA and .NET 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.