I am writing a VBA program that converts .xls files into .csv files. The problem is that is brings up the \"Do you want to save the changes t
.xls
.csv
\"Do you want to save the changes t
Try using ThisWorkbook.Saved = True
ThisWorkbook.Saved = True
Application.DisplayAlerts = False currentBook.SaveAs Filename:=fileNameS, FileFormat:=xlCSV, ConflictResolution:=xlLocalSessionChanges currentBook.Saved = True currentBook.Close SaveChanges:=False Application.DisplayAlerts = True