Hi Everybody,
I want to save my xlsx file into .csv file format. I tried the following code. it works fine but when i open my .csv file, a message prompt me " The file format and extension of new .csv file does not match".File could be corrupted"
Dim file_name As Variant
file_name = Application.GetSaveAsFilename(FileFilter:="Microsoft csv file (*.csv), *.csv")
If file_name <> False Then
ChDir "C:\Users\akarim\Desktop\Data_loading_temp"
ActiveWorkbook.SaveAs Filename:=file_name
MsgBox "File Saved!"
End If
Can any one help me
Thanks
Asif
Bookmarks