PC Review


Reply
Thread Tools Rate Thread

Disabling CTRL R or CTRL D in workbook

 
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      7th Nov 2006
I suspect I'd do this in the Workbook_Open event, but am not sure how. Can
someone assist?

Thanks
 
Reply With Quote
 
 
 
 
Jim Rech
Guest
Posts: n/a
 
      7th Nov 2006
Use OnKey to assign a 'null' sub to a keystroke to kill it:

Application.OnKey "^d", ""

--
Jim
"Barb Reinhardt" <(E-Mail Removed)> wrote in message
news:738707BB-2523-4E7E-AE0C-(E-Mail Removed)...
|I suspect I'd do this in the Workbook_Open event, but am not sure how.
Can
| someone assist?
|
| Thanks


 
Reply With Quote
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      7th Nov 2006
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" <(E-Mail Removed)> wrote in message
> news:738707BB-2523-4E7E-AE0C-(E-Mail Removed)...
> |I suspect I'd do this in the Workbook_Open event, but am not sure how.
> Can
> | someone assist?
> |
> | Thanks
>
>
>

 
Reply With Quote
 
Jim Rech
Guest
Posts: n/a
 
      8th Nov 2006
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" <(E-Mail Removed)> wrote in message
news:7C5A9D64-8D2D-4405-8850-(E-Mail Removed)...
| 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" <(E-Mail Removed)> wrote in
message
| > news:738707BB-2523-4E7E-AE0C-(E-Mail Removed)...
| > |I suspect I'd do this in the Workbook_Open event, but am not sure how.
| > Can
| > | someone assist?
| > |
| > | Thanks
| >
| >
| >


 
Reply With Quote
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      8th Nov 2006
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" <(E-Mail Removed)> wrote in message
> news:7C5A9D64-8D2D-4405-8850-(E-Mail Removed)...
> | 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" <(E-Mail Removed)> wrote in
> message
> | > news:738707BB-2523-4E7E-AE0C-(E-Mail Removed)...
> | > |I suspect I'd do this in the Workbook_Open event, but am not sure how.
> | > Can
> | > | someone assist?
> | > |
> | > | Thanks
> | >
> | >
> | >
>
>
>

 
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
Disabling the shortcuts such as Ctrl+A, Ctrl+B.... using Javascript Gouri.Mahajan7@gmail.com Microsoft ASP .NET 2 10th Jul 2008 09:15 AM
Can I set ctrl+s and ctrl+o window size & ctrl+o save as type defa Moonbarker Osbourne Windows XP General 1 18th Jan 2008 02:10 PM
Shortcut keys like Ctrl+C, Ctrl+V, Ctrl+A etc Not Working gettechtips@yahoo.co.in Windows XP General 1 23rd Sep 2006 12:43 PM
Disabling Ctrl-PgUp and Ctrl-PgDn =?Utf-8?B?Sy5BLiBIdWVzdG9u?= Microsoft Excel Programming 3 9th Oct 2004 12:31 AM
Disabling Windows 2000 Clipboard [Ctrl+C, Ctrl+V] not only for IE Nicole Microsoft Windows 2000 Group Policy 0 12th Feb 2004 09:39 PM


Features
 

Advertising
 

Newsgroups
 


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