Excel file attachment in threads