Thanks jmcilhinney,

I am using xlsx (Excel 2007). so I am not able to csv as xlsx. The exporting should be xlsx only.