I have done quite a bit of research on this issue of a routine in VB that does what the Inkey$ function does in GWBasic. This is one of many example I found, however, it does not work on its own. Do I need to declare an API somewhere/somehow? Pease help as I am new at this. I WANT TO USE THIS VB CODE IN EXCEL.Quote:
Originally Posted by ;19486
Private Sub Form_KeyPress(KeyAscii As Integer)
Select Case KeyAscii
Case ASC("a")
MsgBox ("a Key Pressed")
Case Else
MsgBox ("Key other than a Key Pressed")
End Select
End Sub

