Just go ahead and kill the file and trap the error if it happens:
--Start of snippit
Public Sub RemoveFile (strFileName as String)
On error goto fileError
Kill strFileName
goto hurrah
fileError:
if err.number = 75 then
'file/path error - probably in use
else
'something else went kaka-kookoo, mebbe we'll throw
' it back up the call stack and make it someone
' elses problem
err.Raise err.Number, err.Source, _
err.Description, err.HelpFile, err.HelpContext
end if
err.clear
hurrah:
end sub
---END of snippit
No true coder likes goto statements, but Uncle Bill makes us use 'em anyways. If the file isn't locked, then the app doesn't really have it 'open'. It just read it, and will probably re-write it completely on a save.