andrewb90
Well-known Member
- Joined
- Dec 16, 2009
- Messages
- 1,077
Hello All,
I think not using Excel for so long has dimmed my skills, For whatever reason, I cannot figure out why I am having problems with making these message boxes appear in Excel. Here is what I have:
Basically what I am trying to do is look at the value in E44, and if it is "0" then have one set of YesNO prompts, and if it is not "0", then have a different set of YesNo prompts.
Any assistance to fix my mental macro madness would be greatly appreciated!!!
- Andrew
I think not using Excel for so long has dimmed my skills, For whatever reason, I cannot figure out why I am having problems with making these message boxes appear in Excel. Here is what I have:
Code:
Sub goprompttest()Dim OutPut As Integer
If Range("E44").Value = 0 Then
OutPut = MsgBox("Are you ready to save the temps?" & vbNewLine & "You will not be able to make any changes.", vbYesNo, "Final Check...")
If OutPut = 6 Then
'Output = 6(Yes)
MsgBox "Saving...Your information has been logged.", vbInformation, "Saving..."
ElseIf OutPut = 7 Then Exit Sub
'Output = 7(No)
End If
ElseIf Range("E44").Value <> 0 Then
'Dim OutPut As Integer
OutPut = MsgBox("You appear to have missed " + Range("E44").Value + " items." & vbNewLine & "Please go back and fill in all lines", vbYesNo, "UH-OH!!!")
If OutPut = 6 Then
'Output = 6(Yes)
MsgBox "Saving...Thank you.", vbInformation, "Saving..."
ElseIf OutPut = 7 Then Exit Sub
'Output = 7(No)
End If
End If
End Sub
Basically what I am trying to do is look at the value in E44, and if it is "0" then have one set of YesNO prompts, and if it is not "0", then have a different set of YesNo prompts.
Any assistance to fix my mental macro madness would be greatly appreciated!!!
- Andrew