ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Deleting Files from Within an Excel Macro (https://www.excelbanter.com/excel-programming/282617-deleting-files-within-excel-macro.html)

Chad B

Deleting Files from Within an Excel Macro
 
I have gotten stuck on trying to delete an ascii file from within an Excel Macr

I have a file in EX: "P:\temp\9.dat" that I would like to delete so that I can rename a temporary file to replace this one

Thanks

Cha


Chip Pearson

Deleting Files from Within an Excel Macro
 
Chad,

Use Kill to permanently and irrevocably delete the file. E.g.,

Kill "P\temp\9.dat"


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"Chad B" wrote in message
...
I have gotten stuck on trying to delete an ascii file from within an Excel

Macro

I have a file in EX: "P:\temp\9.dat" that I would like to delete so that

I can rename a temporary file to replace this one.

Thanks,

Chad





All times are GMT +1. The time now is 11:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com