Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default delete an excel file

hi
I would like to delete an excel file, but I don't know the program to do it. Could you help me, please
Thanks. Best regard
Benjamin
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 135
Default delete an excel file

Benjamin, from my documents select the file you want to delete and hit
delete on the key board to send it to the recycle bin, if you want to bypass
the recycle bin do shift and delete, is this what you want or did I miss
under stand the question?
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 97
** remove news from my email address to reply by email **
"Ben.c" wrote in message
...
hi,
I would like to delete an excel file, but I don't know the program to do

it. Could you help me, please ?
Thanks. Best regards
Benjamin



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default delete an excel file

If the excel worksheet is not open use this.

Set objFso = CreateObject("Scripting.FileSystemObject")
objFso.DeleteFile ("c:\test.xls")




"Ben.c" wrote in message
...
hi,
I would like to delete an excel file, but I don't know the program to do

it. Could you help me, please ?
Thanks. Best regards
Benjamin



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 170
Default delete an excel file


"Mike Tomasura" wrote in message
...
If the excel worksheet is not open use this.

Set objFso = CreateObject("Scripting.FileSystemObject")
objFso.DeleteFile ("c:\test.xls")



Why not use the built in VBA commands

Kill filename

Keith


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default delete an excel file

Yes, that would be more efficient.

Kill ("C:\test.xls")

But it sounds like a brutal command.

Mike



"Keith Willshaw" wrote in message
...

"Mike Tomasura " wrote in message
...
If the excel worksheet is not open use this.

Set objFso = CreateObject("Scripting.FileSystemObject")
objFso.DeleteFile ("c:\test.xls")



Why not use the built in VBA commands

Kill filename

Keith






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default delete an excel file

In VBE help, search for the 'Kill statement'.

Kill YourFileName

HTH
Paul
--------------------------------------------------------------------------------------------------------------
Be advised to back up your WorkBook before attempting to make changes.
--------------------------------------------------------------------------------------------------------------

hi,
I would like to delete an excel file, but I don't know the program to do it. Could you help me, please ?
Thanks. Best regards
Benjamin


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
Cannot Delete Excel xls file David Sands Excel Discussion (Misc queries) 2 November 2nd 09 04:41 PM
Excel file locked and cannot delete file Simka Excel Discussion (Misc queries) 7 May 12th 09 10:46 AM
how do i delete a file from recent documents file in excel exile New Users to Excel 1 March 7th 09 01:59 AM
cannot delete excel file danflip Excel Discussion (Misc queries) 0 April 20th 07 04:20 PM
excel file deleted. Now howdo you delete file NAME NANMAC New Users to Excel 8 September 2nd 05 07:26 AM


All times are GMT +1. The time now is 04:03 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"