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

How can I disable key events such as ctrl-break so that a
user cannot stop a macro from running?

Thanks,

Seth
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Disable Key Events

Seth,

You can use the EnableCancelKey setting. E.g,.

Application.EnableCancelKey = xlDisabled
'
' your code here
'
Application.EnableCancelKey = xlInterrupt

Use the xlDisabled setting with caution. If you get in to an infinite loop,
there is no way to get out other then Ctrl+Alt+Delete to close Excel.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
www.cpearson.com


"Seth" wrote in message
...
How can I disable key events such as ctrl-break so that a
user cannot stop a macro from running?

Thanks,

Seth



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
Enabling Events Robin Clay Excel Discussion (Misc queries) 8 July 12th 06 03:07 PM
Events won't Disable! roadkill Excel Discussion (Misc queries) 2 April 26th 06 04:36 PM
events? [email protected] Excel Discussion (Misc queries) 1 September 14th 05 03:26 PM
VBProject events? Marc R. Bertrand Excel Programming 1 September 14th 03 04:12 PM
Hyperlink events Ignatius[_2_] Excel Programming 1 August 12th 03 02:59 AM


All times are GMT +1. The time now is 05:15 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"