Once you have developed a macro, you may want to protect your code. This can be done by hiding or protecting the sheet containing the code.
To hide a sheet in Excel:
To protect a sheet in Excel:
See Excel help for more information on these commands.