The document describes coding done for a form to calculate values and clear the form. It includes code for a button to add values from four text boxes and display the sum and averages in other text boxes. It also includes code for a button to clear all text boxes and reset the form, and code for a button to close the form.