Deal with VBA
From Basic to Advance
VBA is the programming language of Microsoft. It helps in doing tedious and complex office task. It helps in creating a spreadsheet and for calculating a large amount of data. We all know Microsoft excel is the basic tool which is commonly used for a personal and professional purpose.
VBA Tutorial
VBA Tutorial
Part 1
Upon completion of this topic's activities, you will be able to:Part 1
- Navigate through the Excel Workbook Environment
- Understand order of operations
- Define cell names and use built-in functions in Excel
- Use relative and absolute references in Excel
- Plot data sets in Excel
1.1 Getting started in Excel (video, 8:33)1.2 Order of operations (video, 3:38)1.3 Defining cell names (video, 5:33)1.4 Built-in functions in Excel (video, 5:57)1.5 Relative vs absolute references in Excel (video, 17:07)1.6 Plotting in Excel (video, 5:00)
Part 2
Upon completion of this topic’s activities, you will be able to:Part 2
- Access the VBA environment and create macros
- Pass data between the VBA and Excel workbook environments
- Communicate with users using InputBox and MsgBox
- Use absolute and relative referencing in VBA
- Store and utilize data using variables
2.1 Accessing the VBA environment (video, 4:48)2.2 Creating your first macro (video, 6:38)2.3 Variables (video, 10:59)2.4 Message boxes & input boxes (video, 8:09)2.5 Absolute vs relative references in VBA (video, 6:49)2.6 Recording macros (video, 5:20)2.7 Making better use of space in VBA (video, 1:54)
Part 3
Upon completion of this topic's activities, you will be able to:Part 3
- Understand and use data types (Double, Integer, String, Boolean)
- Create constants
- Use VBA's built-in functions
3.1 Data types (video, 8:53)3.2 Constant variables (video, 3:03)3.3 Built-in functions in VBA (video, 1:33)
Part 4
Upon completion of this topic's activities, you will be able to:Part 4
- Create your own Sub procedures in VBA
- Understand variable scope and variable lifetime
- Pass data by value and by reference between Sub procedures
4.1 Introduction to Sub procedures (video, 5:25) 4.1.1 Example: Calling a Sub procedure (video, 10:19) 4.1.2 Example: Reusing Sub procedures (video, 10:17)4.2 Variable scope and variable lifetime (video, 9:21)4.3 Passing by value vs passing by reference (video, 10:27)
Part 5
Upon completion of this topic’s activities, you will be able to:Part 5
- Create your own Function procedures in VBA and invoke them
- Understand the difference between Sub and Function procedures
- Create customized worksheet functions
- Use procedures within procedures
5.1 Introduction to Function procedures (video, 9:20)5.2 Customized worksheet functions (video, 5:27)5.3 Procedures within procedures (video, 10:21)
Part 6
Upon completion of this topic's activities, you will be able to:Part 6
- Utilize relational and logical operators
- Use If-Then, If-Then-Else, If-Then-ElseIf, and Select Case structures
- Create flowcharts to visually explain how your program utilizes selective execution
6.1 Relational and logical operators (video, 10:31)6.2 If-Then structures (video, 3:46)6.3 If-Then-Else structures (video, 3:46)6.4 If-Then-ElseIf structures (video, 6:50)6.5 Select Case structures (video, 4:44)6.6 Flowcharts (video, 3:23)6.7 Nested decision structures (video, 6:10)
Part 7
Upon completion of this topic’s activities, you will be able to:Part 7
- Use For loops, Do While loops, and Do Until loops
- Create flowcharts to visually explain how your program performs repetitive execution
7.1 Introduction to repetitive execution (video, 1:50)7.2 For loops (video, 12:50)7.3 Do While & Do Until loops (video, 7:45)7.4 Nested loops (video, 5:08)7.5 Loops and the Excel workbook environment (video, 7:46)
Part 8
Upon completion of this topic's activities, you will be able to:• Create UserForms and integrate them with your VBA programs Part 8
8.1 Introduction to UserForms (video, 16.28)8.2 Example using OptionButtons and a ComboBox (video, 12:13)
Part 9
Upon completion of this topic’s activities, you will be able to:Part 9
- Create 1D and 2D arrays and use them to store data
- Pass arrays to Sub procedures and Function procedures
9.1 1D arrays (video, 11:26)9.2 Multidimensional arrays (video, 9:09)9.3 Passing arrays to procedures (video, 5:05)9.4 Dynamic memory allocation (video, 3:04)