Exporting to Microsoft Excel hangs