Hi, I'm trying to complete a non-destructive way of protecting the VBE from 'clever' users (i.e. not using VB code to set/unset the VBProject password).
I have disabled the Macro menu option and the [Alt]F11 shortcut :-
CommandBars("Worksheet Menu Bar").Controls("Tools").Controls("Macro").Enabled = False
Application.OnKey "%{F11}", "Msg" ("Msg" Sub opens a MSGBox to inform user they have no access to the option)
but so far have not been able to disable the Right Click "View Code" option under the Excel icon on the left of the "Worksheet Menu Bar" Toolbar.
Any ideas welcome please...
Bookmarks