If the passwords are hardcoded in the VBA module, follow FatherJack's procedures. Although they can not get into the protected modules, the passwords can still be found with some determination. If you right-click, drag and drop the Excel file into NotePad, you will see the encrypted file. Unfortunately, if the passwords are coded as strings, they will not be encrypted. Again, this will take someone with severe determination to find.
I would say that this will not be a problem 99.99% of the time. If it is still a concern, you still have some options. For example, assume the password is "ABC". Instead of comparing the string to a hardcoded list of passwords, you can check character positions.
if instr(1,sPasswordEnteredByUser,chr(65)) = 1 and _
instr(1,sPasswordEnteredByUser,chr(66)) = 2 and _
instr(1,sPasswordEnteredByUser,chr(67)) = 3 then
'Correct password
else
'no dice
end if
This will be harder, if not impossible to find. Unfortunately, this is probably not a great way to accomplish the task. [sig][/sig]