Try to delete the old file before creating the new file. If you can't delete the file, then it must be in use.
>When i try and create an excel file programmatically AND a copy of the file is already open i get this message
>Cannot create file c:\mydir\myexcel.xls
>is there a way to test if file is open before trying to create it offering operator a warning to close existing file.
>thanks
>k