Lucas Raphael Pianegonda
Lucas Raphael Pianegonda

Reputation: 1181

unlocking a vba project with vba, knowing the password?

I think that question has been asked in different ways. But I didn't found a satisfying solution. I want to unlock a VBA-project using vba code. Possibly something like the .unprotect method for workbooks or -sheets. I know the password, I do not need to crack open the project.

Is there a simple way to realise this?

Upvotes: 0

Views: 722

Answers (1)

Plagon
Plagon

Reputation: 3138

Thats not possible. The Password is not exposed in the VBA Object, so you cant directly access it trough VBA Code. There is only a method to send the keys for the password, but i wouldnt recommend it.

Upvotes: 1

Related Questions