In Visual Basic, there are many cases that we use “subs”. Sub procedure or a subroutine that does not return a value. It is commonly used piece of code which you will want to execute in various places in your program. Using this subroutine, you can minimize your code and find it easy to debug if something went wrong with your program. And this subroutine also can be called in any parts of the program.
Sub Procedure Syntax
[Modifiers] Sub SubName [(ParameterList)]
– used to access level of the procedure; example: Public, Private, protected, Friend