No that works fine, its the MEME in the M20 M22 get out clause which is wrong
You have kind of lost me now if i'm honest...
This is my code for all of the option button, some have option button, some don't but the % value is always calculated by the inputted values from 2 other cells!
This is very frustrating I must admit
Private Sub Worksheet_Calculate()
'Remortgage Cap Warning Messages'
If Range("M19") > 75 Then
MsgBox "The LTV is greater than 75%, the new LTV Cap Rules will apply and the case can only proceed on a Repayment basis, alternatively the loan amount can be reduced." & vbLf & vbLf & _
"The LTV is currently = " & Format(Range("M19").Value, "#,##0.00") & vbLf & vbLf & _
"See Office Instruction 13/11 - LTV Cap for Interest Only & Part and Part Mortgages for more details"
End If
'Further Advance Cap Warning Messages'
If OptionButton22 = True And Range("M30") > 75 Then
MsgBox "The LTV is greater than 75%, the new LTV Cap Rules will apply and the case can only proceed on a Repayment basis, alternatively the loan amount can be reduced." & vbLf & vbLf & _
"The LTV is currently = " & Format(Range("M30").Value, "#,##0.00") & vbLf & vbLf & _
"See Office Instruction 13/11 - LTV Cap for Interest Only & Part and Part Mortgages for more details"
End If
'TofE with Further Advance Cap Warning Messages'
If OptionButton26 = True And Range("M30") > 75 Then
MsgBox "The LTV is greater than 75%, the new LTV Cap Rules will apply and the case can only proceed on a Repayment basis, alternatively the loan amount can be reduced." & vbLf & vbLf & _
"The LTV is currently = " & Format(Range("M30").Value, "#,##0.00") & vbLf & vbLf & _
"If the customer wants to change the repayment method of their main loan via the TofE then they can only convert to Interest Only of Part & Part if the main loan is below 75% LTV as per the new Cap rules" & vbLf & vbLf & _
"See Office Instruction 13/11 - LTV Cap for Interest Only & Part and Part Mortgages for more details"
End If
'Capital Raising Cap Warning Messages'
If Range("M33") > 75 Then
MsgBox "The LTV is greater than 75%, the new LTV Cap Rules will apply and the case can only proceed on a Repayment basis, alternatively the loan amount can be reduced." & vbLf & vbLf & _
"The LTV is currently = " & Format(Range("M33").Value, "#,##0.00") & vbLf & vbLf & _
"See Office Instruction 13/11 - LTV Cap for Interest Only & Part and Part Mortgages for more details"
End If
'New Mortgage Existing Borrower Cap Warning Messages'
If OptionButton6 = True And Range("M26") > 75 Then
MsgBox "The LTV is greater than 75%, the new LTV Cap Rules will apply and the case can only proceed on a Repayment basis, alternatively the loan amount can be reduced." & vbLf & vbLf & _
"The LTV is currently = " & Format(Range("M26").Value, "#,##0.00") & vbLf & vbLf & _
"If the customer is porting their existing balance, and this balance is already on Interest Only or Part and Part above 75% LTV, then they can continue to port it on the existing repayment method, any additional can only proceed on a Repayment basis" & vbLf & vbLf & _
"See Office Instruction 13/11 - LTV Cap for Interest Only & Part and Part Mortgages for more details"
End If
'New Mortgage Non NBS Cap Warning Messages'
If OptionButton24 = True And Range("M26") > 75 Then
MsgBox "The LTV is greater than 75%, the new LTV Cap Rules will apply and the case can only proceed on a Repayment basis, alternatively the loan amount can be reduced." & vbLf & vbLf & _
"The LTV is currently = " & Format(Range("M26").Value, "#,##0.00") & vbLf & vbLf & _
"See Office Instruction 13/11 - LTV Cap for Interest Only & Part and Part Mortgages for more details"
End If
'Switching Cap Warning Messages'
If Range("M36") > 75 Then
MsgBox "Switchers are unaffected by the new 75% LTV Cap, customer can ONLY change their repayment method via a SF211 Form" & vbLf & vbLf & _
"The LTV is currently = " & Format(Range("M36").Value, "#,##0.00") & vbLf & vbLf & _
"See Office Instruction 13/11 - LTV Cap for Interest Only & Part and Part Mortgages for more details"
End If
'TofE and Switch Cap Warning Messages'
If OptionButton27 = True And Range("M39") > 75 Then
MsgBox "Switchers are unaffected by the new 75% LTV Cap, customer can ONLY change their repayment method via a SF211 Form" & vbLf & vbLf & _
"The LTV is currently = " & Format(Range("M39").Value, "#,##0.00") & vbLf & vbLf & _
"If the customer wants to change the repayment method of their main loan via the TofE application then they can only convert to Interest Only of Part & Part if the main loan is below 75% LTV as per the new Cap rules" & vbLf & vbLf & _
"See Office Instruction 13/11 - LTV Cap for Interest Only & Part and Part Mortgages for more details"
End If
'TofE Only Cap Warning Messages'
If OptionButton23 = True And Range("M39") > 75 Then
MsgBox "If the customer wants to change the repayment method of their main loan via the TofE application then they can only convert to Interest Only of Part & Part if the main loan is below 75% LTV as per the new Cap rules" & vbLf & vbLf & _
"The LTV is currently = " & Format(Range("M39").Value, "#,##0.00") & vbLf & vbLf & _
"See Office Instruction 13/11 - LTV Cap for Interest Only & Part and Part Mortgages for more details"
End If
End Sub