Custom VBA Class Development

Pluralsight
Course Summary
Learn to build classes using VBA, making it easier to encapsulate and manage entities in your applications. Add properties, methods, and events to your classes, and then consume the classes as you create code. Focus on specific class-based features, such as collection classes and custom events, and learn to create dynamic data structures using VBA classes.
-
+
Course Description
It's possible to create VBA applications for Microsoft Office and other VBA hosts without ever delving into the concepts of creating and using classes, but by skipping this important and useful functionality, you deny yourself one of the best ways to create scalable, maintainable applications. By encapsulating entities in discrete classes, you make it easier to ensure that generalized code doesn't interact inappropriately with your data. In this course, you'll learn to create and consume VBA classes, adding your own custom properties, methods, and events. You'll learn to handle specific class-based issues, such as orphaned objects and memory leaks, creating custom events and handling those events, and wrapping the Collection object in a class to extend and protect it. You'll also learn how to create standard dynamic data structures like stacks, queues, and linked lists using VBA, and you'll be astonished at how easy it is to create these using VBA classes.
-
+
Course Syllabus
Class Modules- 1h 15m
—Introduction 1m 2s
—Assumptions 1m 49s
—Motivating Classes 7m 3s
—Working With Word.Application 10m 22s
—Creating a Class 4m 49s
—Creating a Class Demo 2m 35s
—Simple Property 1m 56s
—Simple Property Demo 1m 10s
—Creating Methods 2m 9s
—Creating Methods Demo 3m 19s
—Property Procedures 5m 15s
—Property Procedures Demo 8m 16s
—Property Set 2m 29s
—Property Set Demo 2m 29s
—Property Issues 5m 6s
—Creating Enumerated Values 1m 55s
—Creating Enumerated Values Demo 5m 22s
—Initialize and Terminate Events 1m 7s
—Initialize and Terminate Events Demo 3m 27s
—Important Observations 2m 33s
—Summary 0m 40sCollection Classes- 31m 46s
—Introduction 0m 35s
—Built-in Collection Classes 1m 52s
—Built-in Collection Classes Demo 6m 17s
—Motivating Custom Collection Classes 1m 37s
—Motivating Custom Collection Classes Demo 1m 25s
—Finishing the Custom Collection Class 1m 33s
—Finishing the Custom Collection Class Demo 5m 13s
—Extending the Collection Class 1m 0s
—Extending the Collection Class Demo 2m 31s
—Missing Features 1m 55s
—Missing Features Demo 2m 55s
—Using a Collection Class 3m 44s
—Summary 1m 4sReference Issues and Events- 41m 41sDynamic Data Structures- 59m 21sCustom VBA Class Development Summary- 4m 32s