How to Check if Excel is Password Protected

Hi,
We have a requirement to check if the excel file is password protected. If it is I have to email client about the issue. How do I check if excel is protected. Is there any activity?

Hi
Not sure abt activities , but if you try to open , pop up comes up , if u do a check app state on that you should be able to get if it’s protected or not, I guess

@nanmishra

I hope this summarizes

Just try catch with checking exception message shoild do the job

Cheers

Thanks @Anil_G . I am using that Try/Catch method only. Wanted to make sure there is a direct activity to check this to make things easier instead of Try/Catch. Will stick to the Try/Catch method only then.

1 Like

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