Excel 2007 Save worksheet as CSV differs to save worksheet as csv in VBA

后端 未结 5 433
遥遥无期
遥遥无期 2021-01-07 04:17

I have a problem working with some worksheets within a workbook from a 3rd party website source.

  • the spreadsheet is available at the 3rd party source website
5条回答
  •  半阙折子戏
    2021-01-07 05:16

    This is the case if you are using the SaveAs from the Excel menu but not when using VBA. Changing the regional setting has no effect to VBA flipping date to American format. But adding the below statement fixed it for me as suggested above.

    ws.Columns("B:B").NumberFormat = "dd/mm/yyyy" 
    

提交回复
热议问题