Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Lock Keyboard input

How do I Lock Keyboard input while running Macro? User can press Esc Key to
stop a Macro from running, how do I prevent this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 182
Default Lock Keyboard input

In my procedure i use this code ....
Sub DisableCancel()
Application.EnableCancelKey = xlDisabled
For i = 1 To 60000
Cells(i, 1) = i
Next
Application.EnableCancelKey = False
End Sub


just replace
For i = 1 To 60000
Cells(i, 1) = i
Next

by your code
--
Regards,

Halim



"Alice" wrote:

How do I Lock Keyboard input while running Macro? User can press Esc Key to
stop a Macro from running, how do I prevent this?

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
how to turn SCROLL LOCK OFF, when kwy not on keyboard? Margarita Excel Discussion (Misc queries) 9 October 15th 07 04:45 PM
How can I input arabic text into Excel via a UK keyboard? James Brown Excel Discussion (Misc queries) 1 August 25th 07 10:54 PM
Block keyboard input [email protected] Excel Programming 4 January 5th 07 03:07 PM
lock cells for input Khoshravan Setting up and Configuration of Excel 1 July 19th 06 08:18 AM
Lock the Keyboard [email protected] Excel Discussion (Misc queries) 5 May 25th 05 06:23 PM


All times are GMT +1. The time now is 10:20 AM.

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"