Excel's Dialog Box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, good morning, I want to create a dialog box asking the name of the
person, (I know how to do this), my proble is when I try to use the name, I
want to put the name in the cell: sheet 1 cell A1, but I can't, how I can do
this?
 
Sheets("Sheet1").range("A1").value = Inputbox("Enter name")
Bob Umlas
Excel MVP
 
filo

Sub test()
Worksheets("Sheet1").Range("A1").Value = InputBox("enter a name")
MsgBox "Your Name is " & Range("A1").Value
End Sub


Gord Dibben Excel MVP
 

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

Back
Top