Make .xls output work with more than 5000 rows