#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 271
Default KeyAscii

What is KeyAscii and where is a good website or page that will describe this
and detail this for me?


--
Thanks
Shawn
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default KeyAscii

KeyAscii is a parameter associated with the KeyPress event (usually
associated with forms or controls). Checkout VBA Help for either topic or

http://msdn2.microsoft.com/en-us/lib....keypress.aspx


--
Gary''s Student - gsnu200726


"Shawn" wrote:

What is KeyAscii and where is a good website or page that will describe this
and detail this for me?


--
Thanks
Shawn

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,202
Default KeyAscii

KeyAscii is a parameter associated with the KeyPress event (usually
associated with forms or controls). Checkout VBA Help for either topic
or

http://msdn2.microsoft.com/en-us/lib....keypress.aspx


Since VBA is not a .NET language, I think this link would be a more
comfortable reference...

http://msdn2.microsoft.com/en-us/lib...99(VS.60).aspx

Rick

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default KeyAscii

KeyAscii is a variable which holds the ascii value of a key when it's
pressed. So if you press 'A', KeyAscii will be 65, if you press 'B',
KeyAscii will be 66, etc.

You can easily test this with a UserForm and a TextBox called TextBox1:


Private Sub TextBox1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)

MsgBox KeyAscii & " = " & Chr(KeyAscii)

If KeyAscii = 32 Then

MsgBox "You pressed the space bar"

End If

End Sub



"Shawn" schreef in bericht
...
What is KeyAscii and where is a good website or page that will describe
this
and detail this for me?


--
Thanks
Shawn



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with KeyPress(ByVal KeyAscii As MSForms.ReturnInteger) ernie Excel Programming 1 May 22nd 07 01:15 PM
keyascii = 13 ermeko Excel Programming 3 December 2nd 06 06:38 PM
KeyAscii won't capture the <Tab key Peter T Excel Programming 4 October 2nd 06 12:38 AM
KeyAscii won't capture the <Tab key Bob Phillips Excel Programming 0 October 1st 06 09:39 AM


All times are GMT +1. The time now is 06:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"