Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Trapping key pressed in a worksheet

How can one trap when a key is pressed in a particular worksheet? I
would like to stop a user from entering data in a particular worksheet
but do not want to protect the worksheet because I don't like the ugly
message that pops up when a worksheet is protected. Or is there way I
can get rid of the ugly message?

Thank you
John
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Trapping key pressed in a worksheet

Unfortunately there is no KeyPress event for a worksheet.

Possibly the best way to do what you want would be to set the
EnableSelection property of the worksheet to xlUnlockedCells or
xlNoSelection.

--

Vasant


"John" wrote in message
om...
How can one trap when a key is pressed in a particular worksheet? I
would like to stop a user from entering data in a particular worksheet
but do not want to protect the worksheet because I don't like the ugly
message that pops up when a worksheet is protected. Or is there way I
can get rid of the ugly message?

Thank you
John



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
trapping keys when pressed by user Mark Dubbelaar Excel Programming 0 September 10th 03 02:29 AM
trapping keys when pressed by user Mark Dubbelaar Excel Programming 0 September 10th 03 02:29 AM
trapping keys when pressed by user Mark Dubbelaar Excel Programming 0 September 10th 03 02:29 AM
trapping keys when pressed by user Mark Dubbelaar Excel Programming 0 September 10th 03 02:29 AM
trapping keys when pressed by user Mark Dubbelaar Excel Programming 0 September 10th 03 02:29 AM


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