Disabling shift keypress that prevents code execution 
Author Message
 Disabling shift keypress that prevents code execution

How can I prevent a user from using the shift key to prevent VBA code
from running when a workbook is opening?


Mon, 05 Sep 2005 22:56:55 GMT  
 Disabling shift keypress that prevents code execution
This cannot be done with VBA.  In my opinion, this should
not be done, period.  Taking control away from your users
is bad mojo.  A definite no-no.

If you absolutely must have macros enabled for your
workbook to function correctly, add a worksheet explaining
that fact and have it be the only sheet not set to
xlSheetVeryHidden.  In your workbook_open routine, place
code that reverses these settings and continue on your
merry way.  

Happy day to you!

Quote:
>-----Original Message-----
>How can I prevent a user from using the shift key to
prevent VBA code
>from running when a workbook is opening?
>.



Tue, 06 Sep 2005 02:02:55 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Disabling shift key to prevent displaying the database window at startup

2. Code Execution - CTRL-BREAK Disable ?

3. Help, How disable macro/code execution

4. How to halt execution till a keypress?

5. Newbie preventing preventing Shift key to bypass Autoexec macro

6. SHIFT Key Disable/Enable by code

7. Disabling shift key bypass through code

8. Type Mismatch w/Disable Shift Code

9. Disabling the Shift (bypass) key using code

10. Assigning event to Shift-Tab in KeyPress event


 
Powered by phpBB® Forum Software © phpBB Group