PC Review


Reply
Thread Tools Rate Thread

How do I display the ASCII code of a key

 
 
Jim
Guest
Posts: n/a
 
      24th Jul 2007
I would like to display the ascii code of a key after it is pressed.
Presumably a MsgBox would suffice - Can some point me to a piece of suitable
code

Regards & TIA


 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9obiBCdW5keQ==?=
Guest
Posts: n/a
 
      24th Jul 2007
Was not able to do this personally in a sheet, just on a form

Private Sub workbook_KeyPress(ByVal KeyAscii As _
MSForms.ReturnInteger)

MsgBox KeyAscii
'To handle keyboard combinations (using SHIFT,
'CONTROL, OPTION, COMMAND, and another key),
'or TAB or ENTER, use the KeyDown or KeyUp event.
End Sub

--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"Jim" wrote:

> I would like to display the ascii code of a key after it is pressed.
> Presumably a MsgBox would suffice - Can some point me to a piece of suitable
> code
>
> Regards & TIA
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Odd character display (ASCII 128-159) edeloup Microsoft Access External Data 1 15th Jan 2010 02:09 PM
Ascii code Claudio Microsoft Dot NET Compact Framework 3 16th Mar 2006 08:35 PM
DOS ASCII Code vs Windows ASCII Code??? Daniel Olivares Microsoft Windows 2000 Developer 0 6th Apr 2004 11:02 PM
Re: display ASCII characters JE McGimpsey Microsoft Excel Misc 0 22nd Mar 2004 05:52 PM
ASCII code Abubakar Microsoft VB .NET 39 12th Feb 2004 01:37 PM


Features
 

Advertising
 

Newsgroups
 


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