Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default 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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro for Save As Jeremy Excel Discussion (Misc queries) 2 December 7th 09 10:45 PM
Macro to Insert Current Date into cell - Macro to "Save As" Guy[_2_] Excel Worksheet Functions 4 December 12th 08 08:20 PM
Macro to Save without the Save Message Ellen G Excel Discussion (Misc queries) 4 February 23rd 07 08:52 PM
ASP: Open Excel File with Macro, Allow Macro to run, and then save delgados129 Excel Programming 0 March 10th 05 09:35 PM
Prompted to save changes after macro save - why? Izar Arcturus Excel Programming 2 December 10th 03 09:27 PM


All times are GMT +1. The time now is 04:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"