Hi I have the following code to send the current workbook via Outlook but it is sent as .csv, is it possible to convert it to .xlsx without saving it?
![]()
Please Login or Register to view this content.
Hi I have the following code to send the current workbook via Outlook but it is sent as .csv, is it possible to convert it to .xlsx without saving it?
![]()
Please Login or Register to view this content.
Generally, the approach is to copy the sheet to a new workbook, save the new workbook (as a csv file) to a temporary file name and location, attach the temporary (csv) file to the email, and then kill (delete) the temporary csv file.
You can only save a single sheet to a csv file so, if the workbook has more than one sheet, you'd have to do each one separately.
But, still, doable.
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
Sorry, misread the requirement. But the principle is the same. Save to a temporary Excel file, attach and kill.
Thanks for the rep.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks