ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro to save to .csv (https://www.excelbanter.com/excel-programming/335493-macro-save-csv.html)

ledzepe[_3_]

Macro to save to .csv
 

Hello everyone,

I'm creating a macro that saves Sheet1 to a comma delimited file(CSV)
However whenever I ran the macro, it keeps asking me if I want t
overwrite the existing file. Anyway to force the macro to overwrite th
file without prompting me

--
ledzep
-----------------------------------------------------------------------
ledzepe's Profile: http://www.excelforum.com/member.php...fo&userid=2520
View this thread: http://www.excelforum.com/showthread.php?threadid=39002


Dave Peterson

Macro to save to .csv
 
application.displayalerts = false
'your code to save as .csv
application.displayalerts = true



ledzepe wrote:

Hello everyone,

I'm creating a macro that saves Sheet1 to a comma delimited file(CSV).
However whenever I ran the macro, it keeps asking me if I want to
overwrite the existing file. Anyway to force the macro to overwrite the
file without prompting me.

--
ledzepe
------------------------------------------------------------------------
ledzepe's Profile: http://www.excelforum.com/member.php...o&userid=25207
View this thread: http://www.excelforum.com/showthread...hreadid=390023


--

Dave Peterson


All times are GMT +1. The time now is 03:10 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com