In my programme I periodically open a csv file to write an entry and then close it before moving on. If the user opens the file in Excel and leaves it open then when my programme needs to write to it I get an error 70. I can handle the error, display a warning to the user to close the file and then continue once the file has been closed. But if the user doesn't see the warning then I have to continue looping until they eventually close it. As I know the filename and path, Is there a way to close the file in Excel without closing Excel itself?
[gray]Experience is something you don't get until just after you need it.[/gray]
[gray]Experience is something you don't get until just after you need it.[/gray]