PC Review


Reply
Thread Tools Rate Thread

Closing a modeless dialog via "esc" key

 
 
Bob Flanagan
Guest
Posts: n/a
 
      1st Mar 2008
Is it possible to close a modeless dialog via pressing the esc key when the
dialog no longer has the focus?

Bob


 
Reply With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      1st Mar 2008
Guess you'd need to Hook the keyboard, or maybe as you are only looking for
one particular key, look into RegisterHotKey. It would make a difference to
the complexity if you need to trap a system-wide keypress or merely in a
given window, say a workbook window.
Plenty of examples around for VB6 but I'm don't know how safe, if at all,
they'd be in VBA.

Regards,
Peter T

"Bob Flanagan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is it possible to close a modeless dialog via pressing the esc key when

the
> dialog no longer has the focus?
>
> Bob
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to suppress "Do you want to save" dialog when closing a workbook in a Macro? CW Microsoft Excel Discussion 3 15th Jun 2007 04:02 PM
Closing "System Settings Change" dialog JS Windows XP Embedded 0 28th Sep 2006 09:16 PM
Closing a Modeless Dialog =?Utf-8?B?QW5kcmV3?= Microsoft C# .NET 0 9th Dec 2004 01:19 AM
"Look in" and "Save as" pulldown dialog boxes closing too quickly =?Utf-8?B?eG9uZ29vbGk=?= Windows XP General 0 6th Jan 2004 10:01 PM
"Look in:" and "Save as:" dialog boxes closing too fast =?Utf-8?B?eG9uZ29vbGk=?= Windows XP Help 0 6th Jan 2004 09:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:46 AM.