Save as CSV with semicolon separator

后端 未结 6 1231
庸人自扰
庸人自扰 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:31

    I solved it adding "SaveChanges:=False" when closing workbook

    With ActiveWorkbook
         .SaveAs Filename:="T:\filepath+ ActiveWorkbook.Name", FileFormat:=xlCSV, Local:=True
         .Close SaveChanges:=False
    End With
    

提交回复
热议问题