Reusable Code or Functions

Reusable Code or Functions

Rather than repeat code in each field can you make a header where you can reference diluge code already written, maybe even pass variables?
richardson.christopher