Hi Chet
If C8 in the first sheet of each workbook have a real date then
try this to delete files that are older then 10 days
See the vba help for the Isdate function.to check the cell value is really a date
Do While FNames < ""
Set mybook = Workbooks.Open(FNames)
'your code
If mybook.Sheets(1).Range("C8") < Now() - 10 Then
mybook.Close False
MsgBox "use Kill FNames to delete the file" & FNames
Else
mybook.Close False
End If
FNames = Dir()
Loop
--
Regards Ron de Bruin
http://www.rondebruin.nl
"Chet" wrote in message ...
Ron thanks for your help with deleting all VBE from a
list of file in a specific folder on computer your code
was awesome!!!
Now I want to kind of do the same thing except I want to
delete files that are older than a specific date. All
files are dated in cell C8. Basically - if date is older
than _ then delete file from folder...Is there a way to
do this?
I would just sort my list by date in the file folder but
when I updated the list earlier I change the modified
date to today and can't sort them by date anymore.
Thanks
Chet