Trying to disable viewing code trough VBA is useless because if user deactivates all macros it does nothing. Check [Password protect your VBA project](https://www.microsoft.com/en-us/microsoft-365/blog/2010/06/28/power-tip-password-protect-your-vba-project/)
– Foxfire And Burns And BurnsJan 30 '23 at 11:34
Do note that password protecting your vba code is only to keep it safe from dummies, if there's ill intent, they can still get in, see: https://stackoverflow.com/questions/1026483/is-there-a-way-to-crack-the-password-on-an-excel-vba-project
– Notus_PandaJan 30 '23 at 12:42