Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default 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!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default 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!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default 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!




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete files within a folder tarzan538 Excel Programming 2 March 17th 06 01:25 AM
how can I specific a folder with wildcard criteria and excel will import all the correct files in that folder? Raven[_2_] Excel Programming 1 January 24th 06 04:23 AM
Delete All Files in a folder Michael Smith Excel Programming 1 June 8th 05 05:32 PM
delete all the contents (sub folders and files) in the temp folder Joseph Excel Discussion (Misc queries) 0 June 6th 05 08:01 AM
Delete all files within a folder (incl subfolders) Steph[_3_] Excel Programming 1 September 30th 04 09:59 PM


All times are GMT +1. The time now is 04:41 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"