Excel document produces viable code for events, units, energy, research