Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel VBA - InputBox DEFAULT Value?
Can the DEFAULT parameter in an InputBox, reference a cell? I woul
like to use the value in another cell as the InputBox Default value. Can this be done? If so, how; especially on another worksheet? Thanks, Bruc -- Message posted from http://www.ExcelForum.com |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel VBA - InputBox DEFAULT Value?
res = InputBox( Prompt:="Enter something", Default:= _
Worksheets("Sheet3").Range("A9").Value) or use Worksheets("Sheet3:").Range("A9").Text if you want it to be entered as it is displayed by the cell. -- Regards, Tom Ogilvy "BruceAtkinson " wrote in message ... Can the DEFAULT parameter in an InputBox, reference a cell? I would like to use the value in another cell as the InputBox Default value. Can this be done? If so, how; especially on another worksheet? Thanks, Bruce --- Message posted from http://www.ExcelForum.com/ |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel VBA - InputBox DEFAULT Value?
|
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel VBA - InputBox DEFAULT Value?
Bruce,
Yep! Here's using a named cell, and using a cell reference... '''''''''''''''' Dim mssg As String mssg = InputBox("do your thing", "my thing", Sheets("Sheet3").Range("Function")) mssg = InputBox("do your thing", "my thing", Sheets("Sheet3").Range("B5")) ''''''''''''''''''''' hth -- steveB (Remove 'NOSPAM' from email address if contacting me direct) "BruceAtkinson " wrote in message ... Can the DEFAULT parameter in an InputBox, reference a cell? I would like to use the value in another cell as the InputBox Default value. Can this be done? If so, how; especially on another worksheet? Thanks, Bruce --- Message posted from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
formating inputbox result in excel | Excel Worksheet Functions | |||
Compile Error in Excel 2004 when Inputbox contains "VBCRLF" | Excel Discussion (Misc queries) | |||
Excel Inputbox | Excel Discussion (Misc queries) | |||
Excel VBA Inputbox Properties? | Excel Programming | |||
Excel Macro Code invoking InputBox. | Excel Programming |