Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a macro which has copied data from a workbook, I now want the macro
to delete the entire workbook (send it to the recycle bin) but can't figure out how to do it. Can someone please help me with this problem. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
KILL "path"
"Ed" wrote in message ... I have a macro which has copied data from a workbook, I now want the macro to delete the entire workbook (send it to the recycle bin) but can't figure out how to do it. Can someone please help me with this problem. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Patrick, it works great.
"Patrick Molloy" wrote in message ... KILL "path" "Ed" wrote in message ... I have a macro which has copied data from a workbook, I now want the macro to delete the entire workbook (send it to the recycle bin) but can't figure out how to do it. Can someone please help me with this problem. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Just so the OP knows, Kill doesn't send the file to the Recycle Bin (as the
OP indicated he wanted)... it permanently removes the file from the drive. -- Rick (MVP - Excel) "Patrick Molloy" wrote in message ... KILL "path" "Ed" wrote in message ... I have a macro which has copied data from a workbook, I now want the macro to delete the entire workbook (send it to the recycle bin) but can't figure out how to do it. Can someone please help me with this problem. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If the OP wants to use the Recycle Bin, there is an API solution to do so.
There is an example of how to do this here... http://vbnet.mvps.org/code/shell/recyclebin.htm If the OP needs help breaking this apart for his own needs, he should post back to this thread and someone here will assist him. -- Rick (MVP - Excel) "Rick Rothstein" wrote in message ... Just so the OP knows, Kill doesn't send the file to the Recycle Bin (as the OP indicated he wanted)... it permanently removes the file from the drive. -- Rick (MVP - Excel) "Patrick Molloy" wrote in message ... KILL "path" "Ed" wrote in message ... I have a macro which has copied data from a workbook, I now want the macro to delete the entire workbook (send it to the recycle bin) but can't figure out how to do it. Can someone please help me with this problem. |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Guys - I don't really care what happens to the file. Appreciate all
your help - working fine. "Rick Rothstein" wrote in message ... If the OP wants to use the Recycle Bin, there is an API solution to do so. There is an example of how to do this here... http://vbnet.mvps.org/code/shell/recyclebin.htm If the OP needs help breaking this apart for his own needs, he should post back to this thread and someone here will assist him. -- Rick (MVP - Excel) "Rick Rothstein" wrote in message ... Just so the OP knows, Kill doesn't send the file to the Recycle Bin (as the OP indicated he wanted)... it permanently removes the file from the drive. -- Rick (MVP - Excel) "Patrick Molloy" wrote in message ... KILL "path" "Ed" wrote in message ... I have a macro which has copied data from a workbook, I now want the macro to delete the entire workbook (send it to the recycle bin) but can't figure out how to do it. Can someone please help me with this problem. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Save workbook and delete old workbook | Excel Programming | |||
delete workbook from one location and save workbook to new locatio | Excel Programming | |||
How to Delete a Range in Closed Workbook (to Replace Delete Query) | Excel Discussion (Misc queries) | |||
Delete row if value in another workbook | Excel Programming | |||
Automatically Delete WorkBook 2 modules by using Workbook 1 module | Excel Programming |