+ Reply to Thread
Results 1 to 7 of 7

How Do You Save As A CSV File That Uses ";" To Separate Values?

  1. #1
    Registered User
    Join Date
    08-17-2008
    Location
    London
    Posts
    18

    How Do You Save As A CSV File That Uses ";" To Separate Values?

    hi. please could you tell me how I can save my xls file in csv format but with ";" seperating the values. When i go to "save as > comma delemited (.csv)" or "CSV (MSDOS)" it keeps saving the excel file with commas "," instead of semi-colons ";".

    Any ideas here? thanks

  2. #2
    Registered User
    Join Date
    08-17-2008
    Location
    London
    Posts
    18
    would there be like a macro that can save the the file as a CSV..

    i could use this code:

    .SaveAs Filename:=sFileCSV, FileFormat:=xlCSV

    but is there an extra bit of coding maybe where you can specify what seperates the values? in this case i obviously need ";" semicolons to seperate the values. Please do help me. It's becoming a big headache.

    Thanks a lot.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    See http://office.microsoft.com/en-us/ex...305991033.aspx

  4. #4
    Registered User
    Join Date
    08-17-2008
    Location
    London
    Posts
    18
    That's fine. Thanks. I changed my regional settings to have ";" as a seperator.
    If I save manually then it works.

    But if I use a macro to save (which is how i require it), then it still seperates with commas "," instead of ";".

    So is there a macro code where you can specify the seperator?

    Many thanks.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    You mean saving from a macro ignores the control panel settings?

  6. #6
    Registered User
    Join Date
    08-17-2008
    Location
    London
    Posts
    18
    yes excatly!

    it ignores it.

    i want the macro to save with ";" seperators. if i save manually then it is ok.

    but the macro ignores the control panel settings!

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

+ 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. Using String as filename in Save As not recognised by Dir
    By NoCanDo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-20-2008, 05:49 PM
  2. Save file by cell value
    By HBF in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-28-2008, 02:56 PM
  3. Determining relative file path macro
    By ctmurray in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-18-2007, 12:25 AM
  4. A button to save workbook with file name from K1 cell
    By danield_sk in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 11-13-2007, 11:33 PM
  5. Save file, create .pdf, (Now delete .xls file)
    By daniels012 in forum Excel General
    Replies: 4
    Last Post: 03-30-2007, 05:14 PM

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