Hello,
I have the following line of VBA code within one of my macros.
ActiveWorkbook.SaveAs Filename:="C:\LH1\" & flname, _
FileFormat:=xlCSV, CreateBackup:=False
ActiveWorkbook.Close
The macro opens up a new file, copies data into it, saves it as a .CSV, and then closes the .CSV. This is the only command in the macro that saves a file.
I can't get it to stop prompting the user with a "Do you want to save the changes to xxx.csv".
Is there a way to answer that question within the macro so the user is not prompted?
I have the following line of VBA code within one of my macros.
ActiveWorkbook.SaveAs Filename:="C:\LH1\" & flname, _
FileFormat:=xlCSV, CreateBackup:=False
ActiveWorkbook.Close
The macro opens up a new file, copies data into it, saves it as a .CSV, and then closes the .CSV. This is the only command in the macro that saves a file.
I can't get it to stop prompting the user with a "Do you want to save the changes to xxx.csv".
Is there a way to answer that question within the macro so the user is not prompted?