Hello
I am trying to write a vba-code which will save my Excel file as a semicolon separated values file. Unfortunately my results so far are halting.
Both pieces of code below create a semicolon separated values file, but only if I save them manually.
If I just close the worksheet the file is saved as a comma separated file.
So could anyone maybe help me or explain to me how I write a code that will save the file as semicolon separated values?
Thank You very much in advance.
Yours Dorthe Christiansen
1) ActiveWorkbook.SaveAs Filename:="C:\Users\Public\Desktop" & Aname & sFile, FileFormat:=6
2) ActiveWorkbook.SaveAs Filename:="C:\Users\Public\Desktop\SemicolonSeparatedFile.csv", _
FileFormat:=xlCSV, CreateBackup:=False
I am trying to write a vba-code which will save my Excel file as a semicolon separated values file. Unfortunately my results so far are halting.
Both pieces of code below create a semicolon separated values file, but only if I save them manually.
If I just close the worksheet the file is saved as a comma separated file.
So could anyone maybe help me or explain to me how I write a code that will save the file as semicolon separated values?
Thank You very much in advance.
Yours Dorthe Christiansen
1) ActiveWorkbook.SaveAs Filename:="C:\Users\Public\Desktop" & Aname & sFile, FileFormat:=6
2) ActiveWorkbook.SaveAs Filename:="C:\Users\Public\Desktop\SemicolonSeparatedFile.csv", _
FileFormat:=xlCSV, CreateBackup:=False