Application OnKey

torweb

Board Regular
Joined
Dec 1, 2003
Messages
136
Is there a listing where I can find the code for different keys, such as the page up and page down keys. I'm trying to include them in an Application OnKey routine to disable them.

Thanks for any pointers...
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Von Pookie

MrExcel MVP
Joined
Feb 17, 2002
Messages
13,686
I get a listing if I search for onkey in the VBA help.

PAGE DOWN = {PGDN}
PAGE UP = {PGUP}
 

Forum statistics

Threads
1,170,989
Messages
5,873,164
Members
432,966
Latest member
Chain747

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top