Save .csv with overwrite

  • Thread starter Thread starter Kevin
  • Start date Start date
K

Kevin

I need to modify a .csv file and save it via macro,
without prompting the user about whether to overwrite or
not. I can't find anything in the save method for this,
and overwrite appears to be limited to the copy function.
How do I do this?

Thanks in advance,

Kevin
 
This will save your active book as a csv file


Application.DisplayAlerts = False

ActiveWorkbook.SaveAs FileName:= _
"D:\My Documents\Book1.csv", FileFormat:= _
xlCSV, CreateBackup:=False

Application.DisplayAlerts = Tru
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top