LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Control & Break <Reply

Tom,

Many thanks - you are correct.

However, if I disable it, I could end up with a continuous
loop - which is not a good idea, so instead, I can use the
functionality to ask for a password (so that I can break
out of the code) which the user won't know.....
-----Original Message-----
Look at Excel VBA help on EnableCancelKey

I know that works with escape and I assume it works with

ctrl+break although
I haven't tested it.

--
Regards,
Tom Ogilvy

"Alan.Hutchins"

wrote in message
...
I have a problem with 1 or 2 "super" users.

Occasionally they will press the Ctrl+Break keys because
they can't be bothered to make a couple of simple
selections (which only takes3 to 4 seconds anyway).

As a result, the information they supply can be

incorrect
because they may have entered data against a cost centre
that is not valid for their entity (I can't validate

their
data as it has to be free form entry).

Is there a way that I can stop Control & Break from
stopping the execution of my code during the Auto_open
procedure ?

Also, I want to make sure that it is re-enabled when the
Auto_open procedure has completed.

Many Thanks
Alan



.

 
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
Blank line after control break GregNga Excel Discussion (Misc queries) 1 November 20th 08 05:03 PM
blank row after control break GregNga Excel Discussion (Misc queries) 3 September 6th 07 02:55 PM
Skipping line on control break GKW in GA Excel Discussion (Misc queries) 1 January 4th 06 06:55 AM
Cannot Control - Break out of VBA vmegha Excel Discussion (Misc queries) 1 December 22nd 05 02:44 PM
Control Break and Escape for Interrupting Code Tim Childs Excel Programming 3 May 21st 04 12:51 PM


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