ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How do you delete an exported file from a directory (https://www.excelbanter.com/excel-programming/350651-how-do-you-delete-exported-file-directory.html)

Brett Smith[_2_]

How do you delete an exported file from a directory
 
I want to delete an RDF text file that I export from Excel which is in the
same directory as the Excel spreadsheet. In the beginning of the program, I
want to delete this file so that it doesn't accidentally append new
information. How do I delete this file using code?

Bob Phillips[_6_]

How do you delete an exported file from a directory
 
Look at the Kill command in VBA help.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Brett Smith" wrote in message
...
I want to delete an RDF text file that I export from Excel which is in the
same directory as the Excel spreadsheet. In the beginning of the program,

I
want to delete this file so that it doesn't accidentally append new
information. How do I delete this file using code?




Kevin B

How do you delete an exported file from a directory
 
Use the command Kill "FullpathAndFilename"
--
Kevin Backmann


"Brett Smith" wrote:

I want to delete an RDF text file that I export from Excel which is in the
same directory as the Excel spreadsheet. In the beginning of the program, I
want to delete this file so that it doesn't accidentally append new
information. How do I delete this file using code?



All times are GMT +1. The time now is 11:58 AM.

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