Forum Discussion
12 Replies
- rraghvani
Champion Level 3
Is the spreadsheet already opened in Excel? I suggest you check your Task Manager to ensure no other Excel processes are opened.
- jaydesaiOccasional Contributor
Thank you for the update!
did check and no other Excel file is opened
- Hassan_Ballan
Champion Level 1
Hello,
I am not sure I understand your message. The error says "removing file" while your statement is open file. If you are attempting to delete an open file, first you need to close it.
I don't believe TestComplete can open a password protected file, I get a different error. Probably you need third party libraries to decrypt.
- jaydesaiOccasional Contributor
Hi,
Thank you for the update
I have recorded steps. Please see
- jaydesaiOccasional Contributor
Please find attached
- rraghvani
Champion Level 3
There's no recorded steps or anything attached!
- jaydesaiOccasional Contributor
please check now
- rraghvani
Champion Level 3
Still, nothing is attached, to either the original post or your responses.
- jaydesaiOccasional Contributor
- rraghvani
Champion Level 3
You are opening a different file here, which is not C:\\temp\\DataStorageExcel.xlsx?
I suggest you use double back-slash as opposed to raw string in path name.
When you double click the error message, what line does it take you to? Because the error message is relating to removing a file, and not opening a file!
When file is already open or read protected, Save will errorCan you provide that exact code that is actually failing? You can use "Insert/Edit Code Sample" icon
- jaydesaiOccasional Contributor
Sorry for the confusion. According to previous screenshot, the location path is correct
- rraghvani
Champion Level 3
Create a new project, with your code, to eliminate any other issues.
Provide that exact code that is actually failing, you can use "Insert/Edit Code Sample" icon