Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Retaining the default in an input box - again
I have as suggested by Tom Ogilvy, looked at Input box help again but
failed to find how to retain as default THE STRING LAST ENTERED BY THE USER (as doable in old steam Excel). Any further suggestions - or has the facility fallen by the wayside? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Retaining the default in an input box - again
Don't know but a very simple solution is
Dim foo Sub Macro1() foo = InputBox("Fill me", , foo) End Sub |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Retaining the default in an input box - again
INPUT(message_text, type_num, title_text, default, x_pos, y_pos, help_ref)
=INPUT("Use this again or overwrite",3, "Enter accountingdate", Z99) message_text = "Use this again or overwrite" type_num = 3 title_text = "Enter accountingdate" default = Z99 The equivalent in VBA: expression.InputBox(Prompt, Title, Default, Left, Top, HelpFile, HelpContextId, Type) res = Application.InputBox(Prompt:="Use this again or overwrite", _ Title:="Enter accountingdate", _ Default:=worksheets("Sheet1").Range("Z99"), _ Type:=3) worksheets("Sheet1").Range("Z99").Value = res -- Regards, Tom Ogilvy "Gordon Humphreys" wrote in message ... I have as suggested by Tom Ogilvy, looked at Input box help again but failed to find how to retain as default THE STRING LAST ENTERED BY THE USER (as doable in old steam Excel). Any further suggestions - or has the facility fallen by the wayside? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Inserting and retaining an input variable | Excel Discussion (Misc queries) | |||
Turning off the default date input | Excel Discussion (Misc queries) | |||
default name and value in input cell | Excel Worksheet Functions | |||
How to copy a row with transposing to a column retaining links to input cells? | Excel Worksheet Functions | |||
Retaining a default in an input box | Excel Programming |