9

Is it possible to hide VBA code, normally accessible from Excel's VBA Editor (Alt-F11), from a user's prying eyes? Can I, for instance, sign it with a digital signature?

Standard VBA project password protection is not suitable in this case because it can be cracked relatively easily.

3

1 Answer 1

17

Yes. In the VBA main menu, click on Tools | VBAProject Properties and under the tab "Protection", Check the box "Lock project for viewing" and enter the password.

Save and exit the Excel file. When you open it next the code will be hidden.

Sid

2
  • Is there a way to have this done by code? I create Excel in MS Access VBA, and would like to have the VBE hidden.
    – marlan
    Jul 5, 2022 at 15:18
  • Yes. In fact, I will be posting a video on this very soon in my youtube channel. @marlan Jul 6, 2022 at 16:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.