Lesson#2 VBA Statements Flashcards
What are the 5 basic elements of VBA language?
Objects, Collections, Properties, Methods and Parameters.
What is an Object?
You use an object to refer to something. e.g. A workbook, represented by the workbook object.
What are Collections?
When you refer to several alike objects at the same time. e.g. All open workbooks represented by the Workbooks collection.
What are properties?
The characteristics or attributes of an object. e.g. The address of a cell (the Range.Address property)
What are methods?
They express an action you carry out with , or on, an object. e.g. Copying, Cutting or Pasting (the copy, cut and paste methods)
What are parameters?
They allow you to further specify:
- How a method is carried out.
- A property behaves or is modified.
How do you connect object with properties or methods?
Using a dot. ‘.’
What is the basic structure of a VBA statement?
An object, a dot and a property or method. e.g. Object.Property