Disable ALT KEY

D

Dunce in SC

Is it possible to disable the Ctrl or Alt key using vba code to protect
against someone inadvertantly adding a sheet to a workbook,

Thanks
 
R

Robert Rosenberg

Have you considered protecting the workbook? You can do it manually using
Tools-->Protection-->Protect Workbook and assigning a password, or use the
following code:

ActiveWorkbook.Protect Password:="PasswordHere", Structure:=True,
Windows:=False
 
D

Dunce in SC

Hi Robert:

I have tried but I have many macros accessing a couple of very hidden
sheets (brings up errors with protected workbook) and I am just
concerned that a user may inadvertantly hit the wrong key combinations
and mess up the program. The Menu is custom and I think disabling those
keys will best solve my problems if it is possible.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top