LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default How can delete file by Marco

Hi,

I have problem to delete files, because I only want to delete some
file the name have / include the words of "test" on file name, and I
don't know the path in my local drive (C:). How can I do?

Here is my code for specific path, but how can I change the code for
delete if the file name have / include the words of "test" under my
local drive (C:). Thanks~

On Error Resume Next
Kill "C:\Users\*test*.xl*"
On Error GoTo 0
 
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
Marco to Delete Worksheets CM4@FL Excel Discussion (Misc queries) 2 February 27th 09 07:26 PM
marco to delete empty columns Mike H Excel Programming 0 February 17th 09 09:37 PM
marco to delete empty columns [email protected] Excel Programming 3 February 17th 09 09:09 PM
marco to delete rows Johnfli Excel Discussion (Misc queries) 2 January 11th 07 04:50 PM
A Marco Delete Question [email protected] Excel Programming 1 July 16th 04 08:59 PM


All times are GMT +1. The time now is 02:40 AM.

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"