Program statements need not execute in the order in which they are written in a program.
VBA has various mechanisms that control the order in which different groups of statements are executed while the program is running.
VBA has decision-making (branching) mechanisms that allows the program to make decisions and execute different parts of a program depending on particular circumstances.
VBA also have looping mechanisms that allows parts of a program to be executed repeatedly depending on particular circumstances.