But before you do that, do you need to read/write an excel file or could you just use a comma separated file? If all you need is to write a file excel can open then you could just write a csv. If you don't need anything fancy ( formula , coloured backgrounds etc ) then this may be a better idea.