FIN452&537 Appendix A IntroToVBA SP25
FIN452&537 Appendix A IntroToVBA SP25
Appendix A
Introduction to VBA
1. An Overview of VBA
2. VBA Editor and Modules
3. VBA Basic Syntax
4. Variables and Assignments
5. Conditional Statements
6. Variable Declarations
7. Arrays
8. Debugging
If you save the Excel workbook, all of its modules (and hence
subroutines and functions in them) are saved with the
workbook.
Each subroutine starts with Sub and ends with End Sub, and
each function starts with Function and ends with End
Function.
To see the rest of the output, highlight the active cell and the
three cells immediately to the right on the same row. Click the
function key F2 and then hold down the key combination
CTRL-SHIFT-ENTER.
Putting the cursor over any variable will show the value of the
variable at that stage of the program.