How to create a separate CSV file from VBA?

前端 未结 3 1270
独厮守ぢ
独厮守ぢ 2020-12-01 18:29

I need to output some results as a .csv file, that gets parsed later on by another process. In order to produce these results, I have a huge workbook containing

3条回答
  •  盖世英雄少女心
    2020-12-01 19:22

    You may write a macro like to save the current workbook (opened excel file) in CSV from VBA:

    ActiveWorkbook.SaveAs Filename:="C:\Book1.csv", _
        FileFormat:=xlCSVMSDOS, CreateBackup:=False
    

提交回复
热议问题