EXCEL BS

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/36

encourage image

There's no tags or description

Looks like no tags are added yet.

37 Terms

1
New cards

Relative Referencing (General syntax for selecting a cell)

ActiveCell.Select

2
New cards

Relative Referencing (Syntax for changing the calue of a cell)

ActiveCell.Value = [additional code]

3
New cards

Relative Referencing (Syntax for moveing from the active cell to another cell)

ActiveCell.Offset(#,#).Select

(First#=up or down)

(Second#= left or right)

4
New cards

Absolute Referencing (Syntax for selecting a cell)

Range("CellAddress").Select

5
New cards

Absolute Referencing (Syntax for changing the value of a cell)

Range("CellAddress").Value = [additional code]

6
New cards

Absolute Referencing (Syntax for using Name Box to select a cell that has been named.

Application.Goto Reference:="CellName"

7
New cards

Message Boxes (Uses)

Allow us to display information in a simple dialog box.

Can make one or more buttons available to user for closing the message box and responding to the message.

8
New cards

Message Box Syntax

MsgBox(Messagetext,[buttonoptions],[titletext])

Messagetext=the message you want to sent user

Buttonoptions=text for the buttons you want to appear. Default "OK"

Titletext=Caption or title of the box.

9
New cards

Variable

A named location used for storing data during the execution of a macro. preferable to define your variable before using it in your macro

10
New cards

Variable Syntax

Dim VariableName As DataType

11
New cards

DataTypes for Variables

Integer (Whole number with no decimals)

Single (Number with or without decimal place)

Currency (Number with dollar sign)

String (Text)

12
New cards

If...Then...Else...End If (what it does)

Allows Visual Basic to conditionally execute code, depending on a logical condition.

13
New cards

If...Then simple Syntax

If condition Then [statements][else elsestatements]

14
New cards

If... Then complex Syntax

If Condition Then

[statements]

[elself condition Then

[elseifstatements]

[Else

elsestatements]]

End If

15
New cards

Do...Loop (Syntax)where logical condition is tested after the loop is executed.

Do

[statements]

Loop Until condition



#2

Do

[statements]

Loop While condition

16
New cards

Do...Loop (Syntax) where logical condition is tested before the loop is executed

Do Until condition

[statements]

loop



#2

Do While condition

[statements]

loop

17
New cards

In Do...Loops While stands for

continues to loop While the condition is true

18
New cards

In Do...Loops Until stands for

continues to loop until the condition becomes true.

19
New cards

User Defined Functions (What they do)

Visual Basic procedure which returns a result

Use to create custom functions to perform calculations in your macros or to use directly in your workbook

20
New cards

User Defined Functions (Syntax)

Dim Variable

Function FunName (argrmentlist)

[statements]

FuncName=Expression

End Function

21
New cards

(argumentlist) is the

list of arguments you will be using int he function

22
New cards

Private Macros

Macro that is triggered by some predetermined event

(workbook events)

Open

Activate

Deactivate

BeforePrint

BeforeClose

BeforeSave

23
New cards

Private Macro Syntax

Private Sub Object_Event()

[Statements]

End Sub

24
New cards

What is a MACRO

A series of commands, actions, and functions that can be stored and initiated whenever you want to perform a particular task.

25
New cards

Visual Basic for Applications (VBA)

refers to a programming lanquage you can use to create macros.

26
New cards

Visual Basic Editor (VBE)

All Macros in Excel are created and stored here.

27
New cards

Three Main Objectives of Macros

Automate repetitive excel Tasks

Automate and control input

Guide users through a spreadsheet

28
New cards

Three Methods for creating a Macro

Use the Macro Recorder

Write a new macro in Visual Basic Editor

Copy, Paste, and edit a previously created macro.

29
New cards

Code Window

This is the window in the Visual Basic Editor that displays the Visual Basic code for a macro

30
New cards

Comments

documentation located in the Visual Basic Code to help clarify the purpose or meaning of the macro

31
New cards

What does the F1 Key do

will retrieve help when pressed while an object, property, or method of Visual Basic code is highlighted in the Visual Basic editor

32
New cards

Local Window

displays variables and how they change as a macro is run.

33
New cards

Method

an action that can be performed on an object.

34
New cards

Module

a collection of macros located in the Visual Basic Editor.

35
New cards

Object

an Object is an element of the excel application such as a worksheet, a cell, a range of cells, or the entire workbook. `

36
New cards

Property

is an attribute of an object in excel that defines/changes one of its characteristics EX: font.colorindex=3

37
New cards

Variable

is a named storage location in the Visual Basic Editor that contains data you can retrieve and modify whole the macro code is being executed.