In reply to Beverly D Obeng.

This is not the only cause for the message. It could be the file is locked by a different process, or there could be some other problem with the file. It might be a spreadsheet file that isn't native Excel (like the style created by EXCELXP tagset, which creates an XML file that Excel can read but other apps cannot).