What is an object? Method? Property?
•Object-workbook, worksheets, ranges (noun)
•Method-predefined action for object
•Property-facts or characteristics about an object
What is an example of an object, child object, and method?
Sheets(“Sheet1”).Range(“A1:A5”).Copy
Range is the object child of Sheets. The method is .Copy
What are some of the most common methods to use on Range Objects?
ClearContents, ClearFormats, Cut, Copy, Delete, Replace, Select
Are all property references Boolean = (True/False)?
…?
What are some of the most common properties to use on Range Objects?
Columns, Rows, Width, Offset, Value, Vertical Alignment.
What is a conditional structure?
A conditional structure causes the code to do different things depending on the situation.
Common types:
•If-then
•If-then-else
•Nested Ifs
•Select Case
•If…Else If
What’s the main difference between a Function and a Sub?
A function must always return a value. You assign this value to the function’s name within its code. A Sub does not return a value.
Also, Functions can be used directly in cells while Subs cannot.