>Thanks for the code, Gregory, and sorry for the delay.
>
>However, I'm sorry I could not adapt it to my needs, since, perhaps it was rather complex.
>
>Is there something simple, a simple command, just to check whether a particular excel file is open?
>
>Thanks,
>
>Regards,
>
>Steve
Try the code below..
lcFile = 'c:\docs\test.xls'
IF FOPEN('&lcFile',12) = -1
MESSAGEBOX('File is opened by Somebody!',0+16,'',1500)
Else
Endif