Objects Flashcards
Name some objects in VBA
Application, Workbooks, Workbook, Sheets, Worksheets, Worksheet, Range, Shapes, Shape, Declaring and Assigning an Object Variable
Difference between using Range or Cell function
Range takes cell address and can reference multiple cells.
Cell takes both row and column reference and returns only one cell.
What is looping?
Loops allow you to go through a set of objects/values and analyze it one by one. Specific tasks can also be performed for each loop.
What are the different kinds of loops?
- For Next Loop
- Do While Loop
- Do Until Loop
- For Each Loop
What does the For Next Loop do?
You specify how many time you want the loop to run and what you want the code to do.
What does the Do While Loop do?
This checks for a condition and run the loop while that condition is met (or is TRUE).
What does the Do Until Loop do?
Do Until loops until the specified condition is met. Compared to Do While Loop, which loops until the given condition is met.
What does the For Each Loop do?
This loops through a set of collections.