3 Subroutine in VBA

VBA, like most practical programming languages, also support subroutines. In fact, we have been using subroutines. The event handlers are, in fact, subroutines. The event handler of “Before Update”, particularly, is an interesting example.

 3.1 An example
 3.2 Subroutine versus Function
 3.3 ByVal and ByRef