Jun 1, 2005 #1 JeffAlton Programmer Apr 19, 2003 42 US I have a form that I want to be able to press a button and delete all Excel files from a certain directory that are less than 5000k in size.
I have a form that I want to be able to press a button and delete all Excel files from a certain directory that are less than 5000k in size.
Jun 1, 2005 #2 PHV MIS Nov 8, 2002 53,708 FR Have a look at the Dir, FileLen and Kill VBA functions/instruction. Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
Have a look at the Dir, FileLen and Kill VBA functions/instruction. Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886