Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Cannot Delete Excel xls file | Excel Discussion (Misc queries) | |||
Excel file locked and cannot delete file | Excel Discussion (Misc queries) | |||
how do i delete a file from recent documents file in excel | New Users to Excel | |||
cannot delete excel file | Excel Discussion (Misc queries) | |||
excel file deleted. Now howdo you delete file NAME | New Users to Excel |