Thread: Disable ALT KEY
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Robert Rosenberg[_2_] Robert Rosenberg[_2_] is offline
external usenet poster
 
Posts: 24
Default Disable ALT KEY

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", Structu=True,
Windows:=False

--
_______________________
Robert Rosenberg
R-COR Consulting Services
Microsoft MVP - Excel
"Dunce in SC" wrote in message
...
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



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/