Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Disable ALT KEY

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/

  #2   Report Post  
Posted to microsoft.public.excel.programming
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/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Disable ALT KEY

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



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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable # bmelt Excel Discussion (Misc queries) 8 February 18th 09 04:39 PM
Disable MS Excel 12 km4on Setting up and Configuration of Excel 1 October 2nd 08 12:30 AM
How do I disable a SORT Jeff_in_SC Excel Discussion (Misc queries) 4 August 25th 08 05:58 PM
Disable Alt+F11 Bob Excel Discussion (Misc queries) 3 April 27th 06 10:05 PM
disable F1 12505-5B Excel Discussion (Misc queries) 1 February 16th 05 08:03 PM


All times are GMT +1. The time now is 05:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"