Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Disabling CTRL R or CTRL D in workbook

I suspect I'd do this in the Workbook_Open event, but am not sure how. Can
someone assist?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Disabling CTRL R or CTRL D in workbook

Use OnKey to assign a 'null' sub to a keystroke to kill it:

Application.OnKey "^d", ""

--
Jim
"Barb Reinhardt" wrote in message
...
|I suspect I'd do this in the Workbook_Open event, but am not sure how.
Can
| someone assist?
|
| Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Disabling CTRL R or CTRL D in workbook

Would you do this on Worksheet Open?

"Jim Rech" wrote:

Use OnKey to assign a 'null' sub to a keystroke to kill it:

Application.OnKey "^d", ""

--
Jim
"Barb Reinhardt" wrote in message
...
|I suspect I'd do this in the Workbook_Open event, but am not sure how.
Can
| someone assist?
|
| Thanks



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Disabling CTRL R or CTRL D in workbook

Well, I'd do it wherever it made sense depending on when I wanted it to take
effect. The Workbook_Open event would be the place if I wanted it to take
place immediately on opening the workbook. The effect of an OnKey is
Excel-wide though so if the user switched to another workbook Ctrl-d will be
dead there too. That is, unless you use other events like
Workbook_Deactivate to turn it off (and Workbook_Activate to set it back
on). It can get messy.

--
Jim
"Barb Reinhardt" wrote in message
...
| Would you do this on Worksheet Open?
|
| "Jim Rech" wrote:
|
| Use OnKey to assign a 'null' sub to a keystroke to kill it:
|
| Application.OnKey "^d", ""
|
| --
| Jim
| "Barb Reinhardt" wrote in
message
| ...
| |I suspect I'd do this in the Workbook_Open event, but am not sure how.
| Can
| | someone assist?
| |
| | Thanks
|
|
|


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Disabling CTRL R or CTRL D in workbook

How would I turn it back on???

"Jim Rech" wrote:

Well, I'd do it wherever it made sense depending on when I wanted it to take
effect. The Workbook_Open event would be the place if I wanted it to take
place immediately on opening the workbook. The effect of an OnKey is
Excel-wide though so if the user switched to another workbook Ctrl-d will be
dead there too. That is, unless you use other events like
Workbook_Deactivate to turn it off (and Workbook_Activate to set it back
on). It can get messy.

--
Jim
"Barb Reinhardt" wrote in message
...
| Would you do this on Worksheet Open?
|
| "Jim Rech" wrote:
|
| Use OnKey to assign a 'null' sub to a keystroke to kill it:
|
| Application.OnKey "^d", ""
|
| --
| Jim
| "Barb Reinhardt" wrote in
message
| ...
| |I suspect I'd do this in the Workbook_Open event, but am not sure how.
| Can
| | someone assist?
| |
| | Thanks
|
|
|





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
Is there a difference between CTRL+D and CTRL+" (quotation marks) AKMMS Excel Discussion (Misc queries) 2 March 22nd 10 07:43 PM
How to make Ctrl-C, ctrl-V work in Office 2007 hj Excel Discussion (Misc queries) 1 June 23rd 09 01:09 PM
Excel 2007: Ctrl+PgUp or Ctrl+PgDn with Protected Sheets DrDave Excel Discussion (Misc queries) 1 July 28th 08 04:12 AM
Disabling Ctrl-PgUp and Ctrl-PgDn K.A. Hueston Excel Programming 3 October 9th 04 12:31 AM
Disabling Ctrl, ALT keys turk5555[_4_] Excel Programming 3 December 19th 03 10:52 AM


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