case codes

J

jn

does anyone have a list of all of the case codes?

i tried to suppress page up and page down with the
following code:

private sub text2_keydown(keycode as integer, shift as
integer)
select case keycode
' if user presses page up or page down
case 33, 34
' disable keystroke by setting to 0
keycode = 0
case else
debug.print keycode, shift
end select
end sub

this code is from the microsoft.com/default.aspx? site.
however, it does not stop page up or down.

thanks
 
T

TC

There are "vbKeyXXX" constants for this. They are documented in online help.
To find them, search help for vbKeyUp (for example - just to find where they
are).

HTH,
TC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top