Hi,
I'm using the Power Automate Desktop app and have been able to get it to unlock a protected Excel document to then input date. But how do I then get it to re-lock the Excel when it is going to be closed?

Hi,
I'm using the Power Automate Desktop app and have been able to get it to unlock a protected Excel document to then input date. But how do I then get it to re-lock the Excel when it is going to be closed?
I imagine you can do it through the same UI clicks that you would manually, but if you can't get that to work, try send keys such as {Alt}()f (for file; note f is outside the Alt command because you do not hold it down) and then {Tab} to move the selector to "Protect workbook" (mine takes two tabs, but I'm on 2016 I think. So, tabs to move, and a {Space} to select an option.
Good luck!