1.0 Introduction Flashcards

1
Q

What is variable?

A

a symbolic name that can take on different values
▪ a memory location

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

what is constant

A

a value

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

when you open Excel to write a VBA code for the first time, what is the first thing you do?

A

save the file as “.xlsm” file type or else macros will be lost
▪ m stands for macro-enabled

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

what are macros?

A

short programs that carry out usually non-mathematical operations
-eg. formatting and filling cells with values
* often executed with short-cut keystrokes to achieve desired result easily and quickly
* example: computer codes behind many of toolbar tools on Word and Excel are macros
* generally people use word “macro” to mean any computer program

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

what are subs?

A

most general purpose
* offers most flexibility
* can be written with or without any parameters (except for main Sub program)
* can use graphical user interface (GUI) to get info from user
* can contain sequence of mathematical operations
- eg. decisions and loops

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

functions

A

short programs that can carry out mathematical operations
* but can also be used for non-mathematical operations
* except for a few, functions require parameters
* all functions return a result
* since functions always return a result, they can be used in formula on the worksheet, in
macros, and in subs

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

what can you do with vba

A

with VBA, create ONE workbook that can be used repeatedly for different values of inputs

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

what is VBA

A

Visual Basic for Applications. A programming language that expands and enhances the problem. Solving capabilities of Excel.

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

How to get to VBA in Excel?

A

In Excel > File > Options > Customize Ribbon > Select Devloper

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

Which windows are open when you open VBA and what are they?

A

Project/project explorer
-contains the components of your project
Properties window
-contains the properties of the components of your project

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

what happens when you insert a new module =>

A

a corresponding code window appear with project explorer and properties

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

where can you rename your module?

A

Properties

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

Decision

A

conditional execution of statements

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

Loop

A

performs the same calculation over and over again over a range of values of a certain parameter

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

what is computer program

A

a set of instructions to the computer
-instructions must be given in sequence without ambiguity
-fast but has no intelligence
-needs input information to provide output

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