Excel VBA Typed Collections


Excel VBA Introduction Part 38 – Typed Collections

DESCRIPTION

One of the issues with the Collection class in VBA is that it’s untyped. This means you can add any kind of object to the collection which can lead to issues later on. This video explains how to use class modules to create strongly typed collections. You’ll learn how to create a private collection variable in a class module, how to create a custom Add method to restrict the type of item that can be added to the collection and how to use a custom collection class in your other procedures.




1 Comment

Leave a Reply