Objects Flashcards

1
Q

Name some objects in VBA

A

Application, Workbooks, Workbook, Sheets, Worksheets, Worksheet, Range, Shapes, Shape, Declaring and Assigning an Object Variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Difference between using Range or Cell function

A

Range takes cell address and can reference multiple cells.
Cell takes both row and column reference and returns only one cell.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is looping?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the different kinds of loops?

A
  1. For Next Loop
  2. Do While Loop
  3. Do Until Loop
  4. For Each Loop
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the For Next Loop do?

A

You specify how many time you want the loop to run and what you want the code to do.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the Do While Loop do?

A

This checks for a condition and run the loop while that condition is met (or is TRUE).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the Do Until Loop do?

A

Do Until loops until the specified condition is met. Compared to Do While Loop, which loops until the given condition is met.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the For Each Loop do?

A

This loops through a set of collections.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly