+ Reply to Thread
Results 1 to 4 of 4

Convert CSV file to XLSX without saving it

  1. #1
    Forum Contributor
    Join Date
    03-14-2015
    Location
    Mexico
    MS-Off Ver
    365
    Posts
    285

    Convert CSV file to XLSX without saving it

    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.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,595

    Re: Convert CSV file to XLSX without saving it

    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


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,595

    Re: Convert CSV file to XLSX without saving it

    Sorry, misread the requirement. But the principle is the same. Save to a temporary Excel file, attach and kill.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,595

    Re: Convert CSV file to XLSX without saving it

    Thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Convert .xlsm format to .xlsx while saving
    By zrs in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-05-2020, 06:39 PM
  2. How to disable warnings when saving a .xlsm file as a .xlsx file
    By audax in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-28-2018, 03:58 AM
  3. Help with code to convert xls to xlsx and continue with xlsx file
    By 3345james in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-02-2016, 11:47 AM
  4. Saving .xlsm file to .xlsx
    By BrianAll in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-09-2015, 09:23 PM
  5. XLSx File Saving as an unreadable file Randomly
    By Kmonroe in forum Excel General
    Replies: 0
    Last Post: 05-13-2015, 11:58 AM
  6. [SOLVED] Saving file as xlsx and then pdf
    By jfolson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-03-2013, 08:23 AM
  7. Saving .xlsx file as a .pdf file attachment
    By birchetts in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2012, 11:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1