.SaveAs Replace(flnm, ".csv", ".xlsx"), IIf(Application.Version >= 12, xlWorkbookDefault, xlWorkbookNormal) 这句改为:.SaveAs ThisWorkbook.Path & "\" & Replace(flnm, ".csv", ".xlsx"), IIf(Application.Version >= 12, xlWorkbookDefault, xlWorkbookNormal)