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 in a message box


Is there a way to

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


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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Displaying multiple values in a message box

Maybe...

Option Explicit
Sub aa()

Dim StartValue As Long
Dim EndValue As Long
Dim StartCheck As Long

StartValue = 12
EndValue = StartValue + 5

StartCheck = MsgBox(Prompt:="Start: " & StartValue & vbLf & _
"Finish: " & EndValue & vbLf & vbLf & _
"Continue?", Buttons:=vbYesNo)

If StartCheck = vbNo Then
Exit Sub
End If

End Sub

Dani wrote:

Is there a way to

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

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


--

Dave Peterson
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
If Formula for displaying a message Sherees Excel Discussion (Misc queries) 9 January 16th 10 12:12 PM
Displaying Multiple Values without using Macros or ROWS function ltzhao Excel Worksheet Functions 4 March 16th 09 04:13 PM
Displaying a message when macros run! aiyer[_53_] Excel Programming 1 August 30th 04 10:15 PM
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
Displaying a status message Scott Arnold Excel Programming 2 May 12th 04 12:21 PM


All times are GMT +1. The time now is 09:40 PM.

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"