Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide code in VBA applications

Tags:

excel

vba

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.

like image 961
Abhijit Shelar Avatar asked Feb 24 '12 04:02

Abhijit Shelar


1 Answers

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

like image 149
Siddharth Rout Avatar answered Oct 21 '22 18:10

Siddharth Rout