yes, it’s safe. all it does is to brute-force the password used for protecting the sheet/workbook. It both unlocks the sheet and then prints the password out for you (which will be something odd like AAABBAAAABBAA – but it will work).
The code itself does not do any harm to the pc or the user running it.
2
solved What does this VBA code do, is it safe [closed]