Sub GetValue()
Dim myVar as variant
myVar = InputBox("Enter a Value")
Range("A1").value = myVar
End Sub
Or skip the variable:
Sub GetValue()
Range("A1").Value = InputBox("Enter a Value")
End sub
--
Thanks,
Mike
"certain_death" wrote:
Hi all
Can anyone help me please?
I want to be able to run a macro in an excel spreadsheet that will
include a pop up msgbox that says "enter a value" and then a user can
put a value in and then i want it to put that value in Cell A1 (For
Example). This could be either a numeric number or a date field (eg
31/12/2006).
As I am a newbie to this I am struggling. The rest of the macro I have
done through recorder in excel, can anyone help me???
Many thanks for reading
Cheers and all the best
Mark
:) :)
--
certain_death
------------------------------------------------------------------------
certain_death's Profile: http://www.excelforum.com/member.php...o&userid=24561
View this thread: http://www.excelforum.com/showthread...hreadid=548915