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