Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting Files From VBA
As part of a macro I'm writing in EXCEL via VBA I need to
delete a file from a specfic location. Any Help? |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting Files From VBA
Try using Kill
Kill("C:\My Documents\File I don't need.xls") Dan E "Brett" wrote in message ... As part of a macro I'm writing in EXCEL via VBA I need to delete a file from a specfic location. Any Help? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting Files From VBA
On Error Resume Next
kill "C:\My Documents\Myfile.xls" On Error goto 0 -- Regards, Tom Ogilvy "Brett" wrote in message ... As part of a macro I'm writing in EXCEL via VBA I need to delete a file from a specfic location. Any Help? |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting Files From VBA
Brett,
Look up KILL in XL VBA help HTH Henry "Brett" wrote in message ... As part of a macro I'm writing in EXCEL via VBA I need to delete a file from a specfic location. Any Help? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel Not Deleting .tmp Files When Closing | Excel Discussion (Misc queries) | |||
Deleting Files | New Users to Excel | |||
Deleting Files from within Excel | Excel Discussion (Misc queries) | |||
Deleting Files from Within an Excel Macro | Excel Programming | |||
Deleting Shared Files???!!! | Excel Programming |