In this lesson, we’ll learn about creating modules and subroutines. A module is the area where the code is written. You can add modules by pressing Insert > Module in the VBA editor.
A subroutine is a group of reusable code, which can be called anywhere in your program. Subroutines do not return a value. Subroutines start with Sub, then you add a name, then the subroutine ends with End Sub.