detriez
Board Regular
- Joined
- Sep 13, 2011
- Messages
- 193
- Office Version
- 365
- Platform
- Windows
I am using this code in my .xlsm file to save the file as a CSV UTF-8 file
This works great for English characters but, it replaces non-Latin characters with a series of question marks
I can save this properly by using Save As > CSV UTF-8 Comma Delimited file
What can I be missing here?
This works great for English characters but, it replaces non-Latin characters with a series of question marks
I can save this properly by using Save As > CSV UTF-8 Comma Delimited file
What can I be missing here?
VBA Code:
Sub SaveFileAs(Control As IRibbonControl)
Dim fPth As Object
Set fPth = Application.FileDialog(msoFileDialogSaveAs)
Application.DisplayAlerts = False
With fPth
.InitialFileName = "SaveNewFile"
.Title = "Save Prepped File"
.FilterIndex = 2
.InitialView = msoFileDialogViewList
If .Show <> 0 Then
ThisWorkbook.SaveAs FileName:=.SelectedItems(1), FileFormat:=xlOpenXMLWorkbook
End If
End With
Application.DisplayAlerts = True
End Sub