Yes, you can lock the macro to stop other people from viewing its contents. To do this, go into the Visual Basic editor, go into the Project Explorer right-click on VBA-Project. Go into VBAProject properties. The second Tab up the top gives you the ability to lock the Project and set a password. So if someone tries to open up your project in VBE, they are required to supply the password.
Is this what you are looking for?
Cheers
Matt