Excel Flashcards

1
Q

what is application scripting?

A

a way to automate lengthy manual procedures, customize and extend an application, and create a different interface.

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

what does it mean to record a script?

A

to record a manual procedure and play it back many times.

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

What are 4 reasons you would edit a script?

A
  1. make it more general
  2. eliminate unnecessary steps
  3. to wrap a loop around it
  4. to do something similar.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what do the characters ‘ and _ mean in a script?

A

’: comment
_: the statement continues to the next line.

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

what is a subroutine?

A

a script that does something, but doesnt return a value.

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

what does a function do?

A

returns a value

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

what are the data objects in excel Marcos and give 5 examples.

A

everything you see in a workbook; everything except the application.
1. workbook
2. worksheets
3. cells
4. charts
5. ranges

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

what are 3 examples properties?

A

colour, value and font.

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

what are 2 characteristics of properties?

A
  1. can be read or set in macros
  2. can be another object
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what are 3 examples of methods?

A

ClearContents, Sort and Worksheet

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

what are 2 characteristics of methods?

A
  1. they do something to an object.
  2. they contain parameters
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what are methods?

A

a type of built-in function or subroutine that does something with or to an object.

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

what is a member?

A

both a property and a method.

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

what is a benefit of naming ranges/cells?

A

by adding a blank row at the end of a named range, a macro will include any columns or rows added to the range.

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

what is $A$3 an example of?

A

an absolute reference.

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

when is a breakpoint used?

A

in debugging

17
Q

what does a breakpoint do and how do you set it?

A

stops the macro when it gets to a specific line so you can parse the code line by line, you can set by clicking on the left margin.

18
Q

Where are macros stored?

A

in modules

19
Q

in the following script, what are the objects, methods and properties?
Application.Worksheets(“Visa”) _
.Range(“Stmt”).Font.Name = “Helvetica”

A

Object: Application
Methods: Worksheets(): returns a Worksheet object (goes to a worksheet), Range(): returns a Range object
Properties: Font: value is a Font object, Name: a string