+ Reply to Thread
Results 1 to 1 of 1

save as csv (comma separated) produces ???? values for russian charachters

Hybrid View

  1. #1
    Registered User
    Join Date
    06-03-2013
    Location
    brussels
    MS-Off Ver
    Excel 2007
    Posts
    94

    save as csv (comma separated) produces ???? values for russian charachters

    Hi,

    Does someone know if there is a workaround to save an xlsx file as comma separated csv file without losing the special charachters (portuguese, spanish, russian, ...) in utf8 ?

    My current code enables to save the file as csv where special characters are preserved BUT I do not have the comma separated...

    Can I include this into the vba code by any chance?

    thanks,

    ' Save as XLSX
    
    xlsname = Application.GetSaveAsFilename & "xlsx"
    
    Application.DisplayAlerts = False
    Application.DisplayAlerts = True
    
    ActiveWorkbook.SaveAs Filename:=xlsname, FileFormat:=xlOpenXMLWorkbook, ConflictResolution:=xlLocalSessionChanges
    
    ActiveWorkbook.Save
    
    'Save as CSV
    
    csvName = Left(xlsname, InStr(1, xlsname, ".") - 1) & ".csv"
    
    ActiveWorkbook.SaveAs Filename:=csvName, FileFormat:=xlUnicodeText, local:=False
    
    ActiveWorkbook.Save
    
    MsgBox "Files successfully created!"
             
     
        ' To suppress excel prompts and alert messages while the macro is running.
     
     Application.DisplayAlerts = False
     ActiveWorkbook.Close False
    
        
      Unload Me
    Last edited by rickmeister; 06-13-2017 at 04:09 AM.

+ 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. Save(Append) existing cellvalues to comma-separated file
    By kohedin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-10-2013, 04:21 AM
  2. Save excel data range in comma separated .txt file
    By skycowboy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2011, 06:38 AM
  3. Comma separated values
    By shrikantk in forum Excel General
    Replies: 3
    Last Post: 05-18-2009, 09:52 AM
  4. [SOLVED] Change a comma separated text file and save it
    By BristolBloos in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2006, 09:50 AM
  5. [SOLVED] Change a comma separated text file and save it.
    By BristolBreeze in forum Excel General
    Replies: 2
    Last Post: 03-23-2006, 07:55 AM
  6. [SOLVED] Changing a comma separated text file and save it.
    By BristolBreeze in forum Excel General
    Replies: 0
    Last Post: 03-23-2006, 06:35 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