tuning for auto-write excel finished