Hey!
I have the following IF statement nest:
So if P24 is > 1, it should check if M30 is below 1. If that's the case, do -0.1 on R9. And keep looping until M30 is above 1.
If P24 not >1, it should just do R9 - 0.1 until P 10 is true.
Long story short, I get a Loop without do error. Have searched for a solution, but can't find the solution. Or I am not applying the solution in the right way at least.
I have the following IF statement nest:
Code:
If Range("P24").Value > 1 Then
If Range("M30").Value <= 1 Then
Range("R9").Value = Range("R9").Value - 0.1
Loop Until Range("M30").Value >= 1
End If
Else
Range("R9").Value = Range("R9").Value - 0.1
Loop Until Range("P10").Text = True
End If
So if P24 is > 1, it should check if M30 is below 1. If that's the case, do -0.1 on R9. And keep looping until M30 is above 1.
If P24 not >1, it should just do R9 - 0.1 until P 10 is true.
Long story short, I get a Loop without do error. Have searched for a solution, but can't find the solution. Or I am not applying the solution in the right way at least.