Function for generating Excel labelling.