Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Preventing users from breaking code with ESC

Hello,

I would like to prevent users from interrupting my routines globally.
assigning "{ESC}" to a macro helped slightly, but still i sometimes see
the "code execution has been interrupted" popup when i press escape.
I know about EnableCancelKey, is there something like that which would
work globally?

Thank you very much for any help/pointers you can provide.
Joost
--
Friends help you move, real friends help you move bodies.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Preventing users from breaking code with ESC

Hi Joost,

See VBA help for details of the EnableCancelKey Property.


---
Regards,
Norman




"joost" wrote in message
l...
Hello,

I would like to prevent users from interrupting my routines globally.
assigning "{ESC}" to a macro helped slightly, but still i sometimes see
the "code execution has been interrupted" popup when i press escape.
I know about EnableCancelKey, is there something like that which would
work globally?

Thank you very much for any help/pointers you can provide.
Joost
--
Friends help you move, real friends help you move bodies.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Preventing users from breaking code with ESC


A better solution might be to speed up your code so that users don't
become impatient. If they cannot use Escape then they would have
to resort to Task Manager and close Excel - that won't help your
reputation.
You could also add a message box (when escape is pressed) asking for
confirmation that they want to exit. That would eliminate concern that
the program is not responding.
In addition, adding a progress bar or some information in the Status Bar
lets the user know that the code is working.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"joost" wrote in message l...
Hello,

I would like to prevent users from interrupting my routines globally.
assigning "{ESC}" to a macro helped slightly, but still i sometimes see
the "code execution has been interrupted" popup when i press escape.
I know about EnableCancelKey, is there something like that which would
work globally?

Thank you very much for any help/pointers you can provide.
Joost
--
Friends help you move, real friends help you move bodies.
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
Preventing hyperlinks and vlookups from breaking jane Excel Worksheet Functions 5 December 23rd 09 12:30 AM
Preventing hyperlinks and vlookups from breaking jane Excel Discussion (Misc queries) 2 December 18th 09 04:34 PM
Prevent users from breaking VBA code execution KerranJast Excel Programming 2 May 31st 06 04:32 PM
Preventing users from saving a spreadsheet MDH Excel Discussion (Misc queries) 4 July 6th 05 09:46 PM
Preventing users from deleting worksheets Alice[_3_] Excel Programming 2 November 13th 03 07:38 PM


All times are GMT +1. The time now is 07:23 PM.

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

About Us

"It's about Microsoft Excel"