LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Delete a file

I'm processing a series of report files to turn them into tables, saving the
tables (workbooks), combining the tables into one composite workbook. This
will happen daily. I want to avoid the irritating messages that a file with
this name already exists. I don't see any way to make the .saveas prevent
that, and haven't found a reliable way to delete the files just before the
..saveas.

I thought surely the shell() function would do it with "del filename.ext",
but it didn't want to hear that. I even made a batch file to delete the
files, but it does it the first time through the program, then quits. It
seems there should be a more elegant way than a batch file anyway.

What am I missing?

Thanks,
Dave Dawson


 
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
2007 Macro to Open File, Delete Contents, Save New File Flintstone[_2_] Excel Discussion (Misc queries) 2 February 1st 10 11:25 PM
how do i delete a file from recent documents file in excel exile New Users to Excel 1 March 7th 09 01:59 AM
delete info from source file w/out changing the destination file TB New Users to Excel 0 May 26th 08 06:26 PM
excel file deleted. Now howdo you delete file NAME NANMAC New Users to Excel 8 September 2nd 05 07:26 AM
End of file marker from Text File - Delete? 43fan Excel Programming 0 April 29th 04 06:06 PM


All times are GMT +1. The time now is 04:10 PM.

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

About Us

"It's about Microsoft Excel"