Excel's Dialog Box

F

filo666

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?
 
G

Gord Dibben

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
 
Top