case codes

  • Thread starter Thread starter jn
  • Start date Start date
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
 
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
 
Back
Top