Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Displaying Multiple values with message boxes


Is there a way to display startvalue,endvalue and duration in one
message box(the one for durationcheck)?
I have the following code but startvalue,endvalue, and duration are all
in separte message boxes. The message box has to give the option of
yes/no to the user


startcheck = MsgBox(startvalue, vbOKOnly, "The cycles will be processed
with the following start time:")
endcheck = MsgBox(endvalue, vbokkonly, "The cycles will be processed
until the following end time:")
DurationCheck = MsgBox(duration, vbYesNo, "Would you like to continue
processing the cycles with the following duration in hours?")
Select Case DurationCheck
Case vbYes
'do nothing
Case vbNo
'exit macro
Exit Sub
End Select

thanks
dani


--
Dani
------------------------------------------------------------------------
Dani's Profile: http://www.excelforum.com/member.php...o&userid=23542
View this thread: http://www.excelforum.com/showthread...hreadid=499910

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 284
Default Displaying Multiple values with message boxes

Try something like what I have below. The string value strMsg could be
built on a single line or the way I have it.

strMsg = "Cycles to be processed with start time: " & startValue
strMsg = strMsg & vbCrLf & "Cycles to be processed until end time: " &
endValue
strMsg = strMsg & vbCrLf & "This will be a duration of " & duration
DurationCheck = MsgBox(strMsg, vbYesNo, "Would you like to continue
processing the cycles with the following duration in hours?")
Select Case DurationCheck
Case vbYes
'do nothing
Case vbNo
'exit macro
Exit Sub
End Select


Steve Yandl


"Dani" wrote in message
...

Is there a way to display startvalue,endvalue and duration in one
message box(the one for durationcheck)?
I have the following code but startvalue,endvalue, and duration are all
in separte message boxes. The message box has to give the option of
yes/no to the user


startcheck = MsgBox(startvalue, vbOKOnly, "The cycles will be processed
with the following start time:")
endcheck = MsgBox(endvalue, vbokkonly, "The cycles will be processed
until the following end time:")
DurationCheck = MsgBox(duration, vbYesNo, "Would you like to continue
processing the cycles with the following duration in hours?")
Select Case DurationCheck
Case vbYes
'do nothing
Case vbNo
'exit macro
Exit Sub
End Select

thanks
dani


--
Dani
------------------------------------------------------------------------
Dani's Profile:
http://www.excelforum.com/member.php...o&userid=23542
View this thread: http://www.excelforum.com/showthread...hreadid=499910



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
Displaying Multiple Values without using Macros or ROWS function ltzhao Excel Worksheet Functions 4 March 16th 09 04:13 PM
Displaying multiple values in a message box Dani Excel Programming 1 January 10th 06 09:43 PM
displaying times in combo boxes LHaro Excel Programming 1 June 17th 05 07:17 PM
Displaying and Hiding Radio Boxes Lester Excel Programming 2 June 29th 04 12:42 AM
Displaying a message in a message box without requiring user to click anything to proceed Android[_2_] Excel Programming 2 June 25th 04 06:44 PM


All times are GMT +1. The time now is 07:17 PM.

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"