Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Input box with variable
I'm trying to include a variable in the text of my Input box so that th user knows what was entered the previous month. Here is the code I am using so far but I can't get the synta straight: Dim Data Data = InputBox("Please enter this month's WAN Availability. Las month's Availability was " & 'Data Input'!C40, "New Month Data") Sheets("Data Input").Range("C41") = Data Help -- bugg ----------------------------------------------------------------------- buggy's Profile: http://www.excelforum.com/member.php...fo&userid=1666 View this thread: http://www.excelforum.com/showthread.php?threadid=31874 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Input box with variable
Hi
try with Sheets("Data Input").Range("C40") Data = InputBox("Please enter this month's WAN Availability. Last month's Availability was " & .value & vblf & "New Month Data") ..offset(1,0).value = Data end with "buggy" wrote: I'm trying to include a variable in the text of my Input box so that the user knows what was entered the previous month. Here is the code I am using so far but I can't get the syntax straight: Dim Data Data = InputBox("Please enter this month's WAN Availability. Last month's Availability was " & 'Data Input'!C40, "New Month Data") Sheets("Data Input").Range("C41") = Data Help! -- buggy ------------------------------------------------------------------------ buggy's Profile: http://www.excelforum.com/member.php...o&userid=16666 View this thread: http://www.excelforum.com/showthread...hreadid=318749 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Input box with variable
Frank, Thanks! However I'm getting a Syntax error with the line ..Offset(1, 0).Value = Data Should this be its own line? it doesn't seem to want to be on the en of the INPut Box line either -- bugg ----------------------------------------------------------------------- buggy's Profile: http://www.excelforum.com/member.php...fo&userid=1666 View this thread: http://www.excelforum.com/showthread.php?threadid=31874 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Variable sum from defined input | Excel Worksheet Functions | |||
Inserting and retaining an input variable | Excel Discussion (Misc queries) | |||
How do I use a worksheet name as an input variable to a formula? | Excel Discussion (Misc queries) | |||
With QUERY how to input a variable | Excel Discussion (Misc queries) | |||
Formulas containing variable input | Excel Discussion (Misc queries) |