Save as CSV with semicolon separator

后端 未结 6 1236
庸人自扰
庸人自扰 2021-01-17 17:06

I\'m currently use this function for saving, but I have a problem with it:

Private Sub spara()
    ActiveWorkbook.SaveAs Filename:=\"T:\\filepath+ ActiveWork         


        
6条回答
  •  余生分开走
    2021-01-17 17:39

    Which language does your Excel use? If your native language uses ";" as default, you can pass the parameter "local:=True"

    ActiveWorkbook.SaveAs Filename:="C:\Temp\Fredi.csv", FileFormat:=xlCSV, CreateBackup:=False, local:=True
    

    If not, your only choice is searching and replacing afterwards...

提交回复
热议问题