Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
How do I set the default value for an input box to the value in F13 on "mysheet" Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sandy,
Look up "InputBox" in VBA Help. The arguments for the InputBox function a -prompt -title -default -xpos -ypos -helpfile -context ....in that order "prompt" is the message to the user inside the box. "title" is what shows up in the title bar of the textbox. "default" is the default value in the box. for example: pstrAnswer = InputBox("Please enter a value:", "Value Needed","This is the default value") HTH, Conan "Sandy" wrote in message ... Hi How do I set the default value for an input box to the value in F13 on "mysheet" Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
myVar = InputBox("Your Prompt Here", "Dialog Box Title Here", _
Default:=Range("F13").Value) "Sandy" wrote: Hi How do I set the default value for an input box to the value in F13 on "mysheet" Thanks |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
More explicit:
myVar = InputBox("Your Prompt Here", "Dialog Box Title Here", _ Default:=mySheet.Range("F13").Value) "Sandy" wrote: Hi How do I set the default value for an input box to the value in F13 on "mysheet" Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Default data in an input box | Excel Programming | |||
Input box default = last input | Excel Programming | |||
Input Box default value as a date | Excel Programming | |||
Retaining the default in an input box - again | Excel Programming | |||
Retaining a default in an input box | Excel Programming |