Writing Code

S

sk

I am a novice at writing code so I need help. I am trying to create an input box to pop up in an excel form and have the information that was put in the box to drop into a particular cell?

Help!
 
B

Bernie Deitrick

sk,

You could use something like this:

Range("A1").Value = InputBox("Enter your name.")

If you want to validate the entry, you can use:

Range("A1").Value = Application.InputBox("Enter your name.", , , , , , , 2)

which makes Excel validate that the user enters a string.

HTH,
Bernie
MS Excel MVP

sk said:
I am a novice at writing code so I need help. I am trying to create an
input box to pop up in an excel form and have the information that was put
in the box to drop into a particular cell?
 

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