.
This is the simplest way but it is not secure :

https://www.ozgrid.com/VBA/protect-vba-code.htm