Reputation: 45
This is my condition
If Range("calcu") = "Orifice diameter" Or Range("calcu") = "Perforated area" And Range("oridia").Value < Range("gasinp").Value Then
if i remove Or Range("calcu") = "Perforated area" then it works but together with OR & AND , it does not work.
Why ?
Upvotes: 0
Views: 1131
Reputation: 7119
Parenthesis, the last frontier.
I think you were looking for this:
If (Range("calcu") = "Orifice diameter" Or Range("calcu") = "Perforated area") _
And Range("oridia").Value < Range("gasinp").Value Then
Upvotes: 4