Workbooks can be protected (sheets are locked). Sheets can also be protected (cells are locked). And vba projects can be protected (VBA is locked). But Excel is not inherently secure so don't invest too much time in all of this - all such passwords can be cracked without too much trouble - by anyone with a determination to break your code, anway.