{"id":775,"date":"2018-06-30T17:21:05","date_gmt":"2018-06-30T17:21:05","guid":{"rendered":"http:\/\/officetuts.net\/excel\/?p=775"},"modified":"2024-03-14T17:36:00","modified_gmt":"2024-03-14T17:36:00","slug":"objects-in-vba","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/training\/objects-in-vba\/","title":{"rendered":"Objects in VBA"},"content":{"rendered":"\n
Object-Oriented Programming (OOP for short) is based on the idea that everything in programming can be described as an object. These objects are not physical things we can see in real life, but virtual ones existing in the computer memory.<\/p>\n\n\n\n
In the following lessons, I will write about things associated with objects, such as properties, methods, events, and hierarchy.<\/p>\n\n\n\n
The Application object<\/strong> represents the entire Excel application. It is located at the top of the object hierarchy and it contains every other object. Follow this lesson to learn more.<\/p>\n\n\n\n The most common objects that derive from the Application object<\/strong> are:<\/p>\n\n\n\n These objects can contain other objects. Let\u2019s take a Workbook<\/strong> for example. Each workbook contains objects, such as:<\/p>\n\n\n\n These objects can also contain objects. For example, a Worksheet<\/strong> can contain the following objects:<\/p>\n\n\n\n In order to work with VBA objects, first, you need to learn how you can refer to them. Below you will find examples of how you can shorten the code, so it will be more readable and easier to write.<\/p>\n\n\n\n\n
\n
\n
Referring to objects<\/h2>\n\n\n\n
Example:<\/h3>\n\n\n\n