>>Hi,
>>Thank you for your reply,
>>
>>But I don't want to open the file, I just want to check the
>>file is opened or not, that let me create a new file to overwrite it.
>>
>>Any solution ?
>
>Well you just close it immediately after that. You don't do anything with it, just try to fopen() it to see if you can. If you can open it, then it's not open elsewhere.
fileIsOpen = !fclose(fopen("yourfile.xls", 12))
Gregory