ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Input Box (https://www.excelbanter.com/excel-discussion-misc-queries/49211-input-box.html)

cassy01

Input Box
 

is it possible to create a pop-up box to type in a value ??? then when
the user clicks "ok" that value is then pasted into "D92" ??? is this
possible ??

thanks


--
cassy01
------------------------------------------------------------------------
cassy01's Profile: http://www.excelforum.com/member.php...nfo&userid=780
View this thread: http://www.excelforum.com/showthread...hreadid=474143


Jim Rech

Assuming this is a macro question:

Sub Ask()
Dim Resp As String
Resp = InputBox("Enter a number")
If Resp < "" Then Range("D92").Value = Resp
End Sub

--
Jim
"cassy01" wrote in
message ...
|
| is it possible to create a pop-up box to type in a value ??? then when
| the user clicks "ok" that value is then pasted into "D92" ??? is this
| possible ??
|
| thanks
|
|
| --
| cassy01
| ------------------------------------------------------------------------
| cassy01's Profile:
http://www.excelforum.com/member.php...nfo&userid=780
| View this thread: http://www.excelforum.com/showthread...hreadid=474143
|



jahoobob


Place this in a macro:
myNum = Application.InputBox("Enter a number")
Range("d72").Value = myNum

cassy01 Wrote:
is it possible to create a pop-up box to type in a value ??? then when
the user clicks "ok" that value is then pasted into "D92" ??? is this
possible ??

thanks


--
cassy01
------------------------------------------------------------------------
cassy01's Profile:
http://www.excelforum.com/member.php...nfo&userid=780
View this thread:
http://www.excelforum.com/showthread...hreadid=474143



--
jahoobob


All times are GMT +1. The time now is 09:12 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com