Object Fundamentals

When looking at a VBA macro that is all debugged and polished, the code seems so easy to write! However, those who haven't done object-oriented programming before may discover that typing in a bunch of object names in a way that makes sense to the developer isn't a guarantee that the code will execute properly. There is a set of rules for object syntax and relationships between objects that the VBA programmer needs to learn. The rest of this section covers some important principles and good tools to simplify learning and make it easy to work with objects. It's the principles and tools that are important, not the objects themselves. Since there are so many objects, it's not worth spending time trying to memorize them.