procedure

A sequence of code statements executed as a unit.  The term procedure refers to both Sub and Function procedures.