INKEY and VBA

J

John Hayes

Hi,

Is there a VBA equivalent to INKEY to get input from the
keyboard?

Regards

John
 
J

Jake Marx

Hi John,

You're probably looking for InputBox:

Dim sAnswer As String

sAnswer = Application.InputBox("Please enter text:","TEST","Default")

MsgBox sAnswer
 

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