How to check can open file excel?

Hello.

I have file excel with protect sheet.
I want to check can open file or not.

If not open it alert : The provided password is in correct.

Please guide me for solve it.
Thank you

Hi @Stef_99

Use Try Catch activity…Place the Read Range Workbook activity in Try block…

Regards,

1 Like

Use the password property in the use excel activity while opening

1 Like

Hi @Stef_99

Since you’ve protected the sheet and not the file, You could use the Unprotect Sheet Activity with the password. and surround it in a try catch. If the password is incorrect, it would go to Catch block.

The Flow

The Try Catch will have:

If this solves your issue, Do mark it as a solution.
Happy Automation :star_struck:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.