Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 355
Default Input Box Default Value

Hi
How do I set the default value for an input box to the value in F13 on
"mysheet"

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 419
Default Input Box Default Value

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Input Box Default Value

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Input Box Default Value

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Default data in an input box jonco Excel Programming 1 February 24th 07 04:00 PM
Input box default = last input justme Excel Programming 5 January 28th 07 04:30 AM
Input Box default value as a date Dan Excel Programming 2 March 3rd 05 08:43 PM
Retaining the default in an input box - again Gordon Humphreys[_2_] Excel Programming 2 August 18th 03 02:28 PM
Retaining a default in an input box Gordon Humphreys[_2_] Excel Programming 1 August 15th 03 02:48 PM


All times are GMT +1. The time now is 07:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"