Hi
I tried to find as many as reference on the web, to find out how to export unicode csv.
But unfortunatly I still got wrong data when original file with Japanese words.
How shall I do? Many thanks.
My current code is something like
I tried to find as many as reference on the web, to find out how to export unicode csv.
But unfortunatly I still got wrong data when original file with Japanese words.
How shall I do? Many thanks.
My current code is something like
Dim arr1() As Variant
Dim Delimiter As String
Dim Filename As String
Dim R As Long
Dim Rng As Range
Dim Text As String
Dim Wks As Worksheet
Dim C As Long
Delimiter = StrConv(",", vbUnicode)
Set Wks = Worksheets(1)
Set Rng = Wks.UsedRange
Filename = ActiveWorkbook.Path & "\" & Wks.Name & ".csv"
ReDim arr1(1 To Rng.Rows.Count)
Open Filename For Output As #1
For R = 1 To Rng.Rows.Count
arr1 = WorksheetFunction.Index(Rng.Rows(R).Cells.Value, 1, 0)
Text = Join(arr1, Delimiter)
'Text = StrConv(Text, vbUnicode)
Print #1, Text
Next R
Close #1
MsgBox "OK"