ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Delete .csv files in a folder (https://www.excelbanter.com/excel-programming/360351-delete-csv-files-folder.html)

John

Delete .csv files in a folder
 
I have an export from another application that opens a generic excel file in
the .csv format. Can I run a macro from my a spreadsheet to delete all .csv
files in a specific folder? Thanks for the help!

Ron de Bruin

Delete .csv files in a folder
 
Hi John

Try this

Kill "C:\TestFolder\*.csv"


--
Regards Ron de Bruin
http://www.rondebruin.nl


"John" wrote in message ...
I have an export from another application that opens a generic excel file in
the .csv format. Can I run a macro from my a spreadsheet to delete all .csv
files in a specific folder? Thanks for the help!




John

Delete .csv files in a folder
 
your a champ! Thanks for the tip

"Ron de Bruin" wrote:

Hi John

Try this

Kill "C:\TestFolder\*.csv"


--
Regards Ron de Bruin
http://www.rondebruin.nl


"John" wrote in message ...
I have an export from another application that opens a generic excel file in
the .csv format. Can I run a macro from my a spreadsheet to delete all .csv
files in a specific folder? Thanks for the help!






All times are GMT +1. The time now is 05:20 PM.

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