Chapter 2.3: VBA Primer - Northwestern University
Chapter 2.3:
VBA Primer
?Barry L. Nelson
Northwestern University
December 2012
1
Visual Basic for Applications
? VBA a significant subset of the stand\alone Visual
Basic programming language
? It is integrated into Microsoft Office applications
(and others)
? It is the macro language of Excel
? You can add
C Forms for dialog boxes with user input
C Modules containing procedures ? this lecture
C Class Modules for object definitions ? later
2
VBA & Excel for
discrete\event simulation
? Advantages
C VBA is easy to learn and available almost everywhere
C VBA is a full\featured programming language so what you
learn translates directly to C++, Java, etc.
C You have access to Excel functions for computation and
Excel itself for storing and analyzing outputs
? Disadvantages
C VBA is interpreted, not compiled, so execution is slow
C Excel functions can be buggy
3
Accessing VBA in Excel 2010+
? You launch the Visual Basic Editor from the
Developer Tab.
? If you dont have a Developer Tab in the
Ribbon, then go to the File, Options, and add
the Developer tab to the ribbon.
4
Modules are a
convenient way to
organize code
Code Window:
This is where you
will write your
simulation programs
Property Inspector
Project Explorer
Declarations made here are global; all
other code must be in a Sub or
Function
5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- identifying unique values in an array or range vba
- arraylist multidimensional arrays
- a beginners guide to arrays and do loops
- introductory notes variables equations
- working with array functions and dlls in excel vba
- basic matrix and vector functions written with
- vba cheat sheets automate excel
- chapter 2 3 vba primer northwestern university
Related searches
- chapter 2 developmental psychology quizlet
- medical terminology chapter 2 terms
- physics chapter 2 practice test
- northwestern university in chicago il
- psychology chapter 2 quizlet
- northwestern university executive programs
- northwestern university linguistics
- northwestern university digital marketing
- northwestern university executive education
- discover 1 2 3 4 checking 1 2 3 4 account
- discover 1 2 3 4 checking 1 2 3 4 account 1 2
- 2 3 2 pltw digital electronics answer key