PC Review


Reply
Thread Tools Rate Thread

disable pageup and pagedown

 
 
Phyllis
Guest
Posts: n/a
 
      22nd Apr 2010
I can't find the answer to this. I want to turn off the pageup and pagedown
function only when a combobox has been clicked. My user gets confused and
hits pagedown before exiting the combobox and changes her desired choice from
the combobox.

Is there a way to disable it?
 
Reply With Quote
 
 
 
 
john
Guest
Posts: n/a
 
      23rd Apr 2010
see if this does what you want.

Sub disablekeys()

With Application

.OnKey "{PGDN}", ""

.OnKey "{PGUP}", ""

End With

End Sub


Sub enablekeys()

With Application

.OnKey "{PGDN}"

.OnKey "{PGUP}"

End With

End Sub



--
jb


"Phyllis" wrote:

> I can't find the answer to this. I want to turn off the pageup and pagedown
> function only when a combobox has been clicked. My user gets confused and
> hits pagedown before exiting the combobox and changes her desired choice from
> the combobox.
>
> Is there a way to disable it?

 
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
Catching PageUp and PageDown gazza670128 Microsoft C# .NET 3 17th Dec 2009 04:54 AM
disable CTRL-pageup & pagedown Boss Microsoft Excel Misc 4 8th Jan 2008 06:08 PM
Disable PageUp and PageDown Keys =?Utf-8?B?SGVucnk=?= Microsoft Access VBA Modules 2 16th Dec 2004 09:43 AM
How to disable pageup/pagedown in a form so users can't browse records David Kistner Microsoft Access Getting Started 2 1st Oct 2004 09:53 PM
suppress pageup and pagedown jn Microsoft Access Security 0 1st Oct 2003 06:31 PM


Features
 

Advertising
 

Newsgroups
 


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