Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can Ctrl+Page Up &Ctrl+Page Down be blocked in my Excel App. 3

Status
Not open for further replies.

Acquaman

Technical User
Feb 14, 2003
21
US
Hello!
Thanks for your response, if possible.
I really need to prevent users of my Excel Application from switching between Sheets using Ctrl+Page Up & Ctrl+Page Down. I really prey someone can help! Thanks.
Sincerely,
Acquaman
 
Take a look at the Key_Up,Key_Down, ... events

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Hi Acquaman,

You can make a key combination have no effect by using OnKey ..

Code:
[blue]Application.Onkey "^{PGUP}", ""
Application.Onkey "^{PGDN}", ""[/blue]

To reset them back to their default behaviour, use ..

Code:
[blue]Application.Onkey "^{PGUP}"
Application.Onkey "^{PGDN}"[/blue]

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.
 
YES!!!
Thank you very much for your responses - and so FAST!
Greatfully,
Acquaman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top