You can prevent the code from viewing by doing this:
open vba, tool--DBBook Properties --- Protection
set password, make sure Lock project for viewing box is check.
If you want people to be able to read the code but modify it, you may need to write vba code to approche it.