Lesson#3 Objects and the Excel Object Model Flashcards
1
Q
What is the Excel Object Model?
A
The objects in Excel which are organised in a local hierarchy.
2
Q
Which object is at the top of the hierarchy?
A
Application
3
Q
What are the 3 basic steps to navigate the Excel Object Model?
A
- Start at the top of the model, with the Application object.
- Use properties to return objects.
- Use dots (.) to connect the different objects/properties.
e. g. Application.Workbooks.Worksheets
4
Q
What are the 2 ways you can identify an individual object from within a collection?
A
Index number and objects name.
5
Q
What are the 3 basic rules for placing an index number or object name within a statement?
A
- No. or Name is placed after collection name.
- Index number is wrapped within parentheses. (Collection(#)).
- Object name is wrapped within double quotes and parentheses. (Collection(“ObjectName”).
6
Q
How do you simplify fully-qualified references?
A
You can omit the Application object.