put in the sub Formatting the line sheets("HAFA listing").select