Hi all - From a main macro i call another (in same module). the second macro checks ranges and if conditions not met, it is supposed to give message and exit sub.... but for some reason it gives the message and continues running the sub.... any ideas?
here are codes.
main macro
check conditions
here are codes.
main macro
Code:
Sub register()
'perform pre check before registering check in
Call precheck
check conditions
Code:
Sub precheck()
'perform check to ensure all answers were given before submitting to register
If Range("C3") = "" Or _
Range("l3") = "" Or _
Range("n9") = "" Or _
Range("n11") = "" Or _
Range("n14") = "" Or _
Range("n16") = "" Or _
Range("n27") = "" Or _
Range("n30") = "" Then
'give message that there are missing details
MsgBox ("MISSING INFORMATION " & vbNewLine & _
vbNewLine & "Minimum details required are: " & vbNewLine & vbNewLine & _
"1. Name," & vbNewLine & _
"2. Temperature," & vbNewLine & _
"3. All questions answered") & vbNewLine & vbNewLine
Exit Sub
End If
End Sub