VBA Blogs: Going Through the Visual Basics – Part 11
2 November 2018
We thought we’d run an elementary series going through the rudiments of Visual Basic for Applications (VBA) as a springboard for newer users. This blog takes a high-level look at control structures.
In a programming, a control structure determines the order in which statements are executed. Control structures can be grouped into three main categories:
- Sequential: Sequential execution is where each statement in the source code will be executed one by one in a sequential order. This is the default mode of execution
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2018/vba/vba-part-11/image1.png/e774d10cbbb9450fc45efbe51abdf434.jpg)
- Selection: The selection control structure is used for making decisions and branching statements
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2018/vba/vba-part-11/image2.png/f32e5a15e2cf9c3e4d2d058458ce054d.jpg)
- Iteration: The iterative control structures are used for repetitively executing a block of code multiple times
![](http://sumproduct-4634.kxcdn.com/img/containers/main/blog-pictures/2018/vba/vba-part-11/image3.png/f1140ff857fc3b6f5f97a6a24f4a6fc7.jpg)
We’ll take a look at each type in the next few blogs…