generate excel in loop finished