Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Input Box and Message box Help

I have an input box that a person enters there name into.
Name = InputBox("Please Enter you Full Name")

Later in the program i need to have a message box pop up that asks the user
if they are ready to calculate the data. I would like the msgbox to display
the user's name

Such as, this is of course not right

Msgbox(Name "Are you ready to calculate the data?")
So if Name = Kevin
the MsgBox would say Kevin are you ready to calculate the data?

Thanks for the help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Input Box and Message box Help

ans = MsgBox(Name & " are you ready to calculate the data?")

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Lost and Looking for Help"
wrote in message
...
I have an input box that a person enters there name into.
Name = InputBox("Please Enter you Full Name")

Later in the program i need to have a message box pop up that asks the

user
if they are ready to calculate the data. I would like the msgbox to

display
the user's name

Such as, this is of course not right

Msgbox(Name "Are you ready to calculate the data?")
So if Name = Kevin
the MsgBox would say Kevin are you ready to calculate the data?

Thanks for the help



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default Input Box and Message box Help

Sub PromptMe()
Dim Name As String
Name = InputBox("Please enter your name", "Enter Name")
MsgBox Name & ", are you ready to calculate the data?"
End Sub


"Lost and Looking for Help" wrote:

I have an input box that a person enters there name into.
Name = InputBox("Please Enter you Full Name")

Later in the program i need to have a message box pop up that asks the user
if they are ready to calculate the data. I would like the msgbox to display
the user's name

Such as, this is of course not right

Msgbox(Name "Are you ready to calculate the data?")
So if Name = Kevin
the MsgBox would say Kevin are you ready to calculate the data?

Thanks for the help

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Input Box and Message box Help


intReturn = MsgBox(Name & "Are you ready to calculate the data?",
vbYesNo)
Select Case intReturn
Case vbYes
'What to do if yes
Case vbNo
'What to do if no
End Select


--
mpeplow
------------------------------------------------------------------------
mpeplow's Profile: http://www.excelforum.com/member.php...o&userid=34812
View this thread: http://www.excelforum.com/showthread...hreadid=551941

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
Message or input thesaxonuk Excel Discussion (Misc queries) 4 October 25th 06 09:38 AM
Validation input message box Fred Excel Programming 0 June 8th 05 11:29 PM
Input Message macro George Andrews Excel Programming 2 May 18th 05 09:14 AM
Can VBA accept input from a message box? dougmcc1[_7_] Excel Programming 1 October 7th 04 10:48 PM
input message tamersaid Excel Programming 1 June 6th 04 02:06 PM


All times are GMT +1. The time now is 12:32 AM.

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

About Us

"It's about Microsoft Excel"