Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Inputting from message box
Hey guys,
Simple questions. Im trying to get a imput box come up when you open the worksheet that asks for your name. Then it takes what you inputted and puts it into a the cell E8 in a sheet named Summary. I have this so far: Dim Message1, Title1, MyValues Message = "Please enter your name (First and Last)" Title = "Name" '<--Change MyValues = InputBox(Message, Title) Thanks! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Inputting from message box
Try even simpler:
Sub Auto_open() Sheets("Summary").Range("E8").Value = _ InputBox("Yo name:", "Important") End Sub HTH. Best wishes Harald "Ewing25" wrote in message ... Hey guys, Simple questions. Im trying to get a imput box come up when you open the worksheet that asks for your name. Then it takes what you inputted and puts it into a the cell E8 in a sheet named Summary. I have this so far: Dim Message1, Title1, MyValues Message = "Please enter your name (First and Last)" Title = "Name" '<--Change MyValues = InputBox(Message, Title) Thanks! |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Inputting from message box
Dim Message1, Title1, MyValues
Message = "Please enter your name (First and Last)" Title = "Name" '<--Change MyValues = InputBox(Message, Title) Sheets("Summary").Range("E8") = MyValues "Ewing25" wrote: Hey guys, Simple questions. Im trying to get a imput box come up when you open the worksheet that asks for your name. Then it takes what you inputted and puts it into a the cell E8 in a sheet named Summary. I have this so far: Dim Message1, Title1, MyValues Message = "Please enter your name (First and Last)" Title = "Name" '<--Change MyValues = InputBox(Message, Title) Thanks! |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Inputting from message box
On Jun 2, 2:19*pm, Ewing25 wrote:
Hey guys, Simple questions. Im trying to get a imput box come up when you open the worksheet that asks for your name. Then it takes what you inputted and puts it into a the cell E8 in a sheet named Summary. I have this so far: Dim Message1, Title1, MyValues * * *Message = "Please enter your name (First and Last)" * * Title = "Name" *'<--Change * * MyValues = InputBox(Message, Title) Thanks! Dim Message1 As String, Title1 As String Dim MyValues As String Message = "Please enter your name (First and Last)" Title = "Name" '<--Change MyValues = InputBox(Message, Title) If MyValues < vbNullString Then _ Sheets("Summary").Range("E8").Value = MyValues |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Inputting from message box
Great thanks!
"JLGWhiz" wrote: Dim Message1, Title1, MyValues Message = "Please enter your name (First and Last)" Title = "Name" '<--Change MyValues = InputBox(Message, Title) Sheets("Summary").Range("E8") = MyValues "Ewing25" wrote: Hey guys, Simple questions. Im trying to get a imput box come up when you open the worksheet that asks for your name. Then it takes what you inputted and puts it into a the cell E8 in a sheet named Summary. I have this so far: Dim Message1, Title1, MyValues Message = "Please enter your name (First and Last)" Title = "Name" '<--Change MyValues = InputBox(Message, Title) Thanks! |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
Inputting from message box
That is efficient, but if you want to use the value again, you still need a
variable. "Harald Staff" wrote: Try even simpler: Sub Auto_open() Sheets("Summary").Range("E8").Value = _ InputBox("Yo name:", "Important") End Sub HTH. Best wishes Harald "Ewing25" wrote in message ... Hey guys, Simple questions. Im trying to get a imput box come up when you open the worksheet that asks for your name. Then it takes what you inputted and puts it into a the cell E8 in a sheet named Summary. I have this so far: Dim Message1, Title1, MyValues Message = "Please enter your name (First and Last)" Title = "Name" '<--Change MyValues = InputBox(Message, Title) Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
help with inputting code | New Users to Excel | |||
inputting figures in cells | Excel Discussion (Misc queries) | |||
Inputting date as dd/mm not mm/dd | Excel Discussion (Misc queries) | |||
inputting data | Excel Discussion (Misc queries) | |||
Help Inputting a Name in a Macro | Excel Programming |