0

これが私の条件です

If Range("calcu") = "Orifice diameter" Or Range("calcu") = "Perforated area" And Range("oridia").Value < Range("gasinp").Value Then

Or Range("calcu") = "Perforated area" を削除すると機能しますが、 OR & AND と一緒に使用すると機能しません。

なんで ?

4

1 に答える 1

4

括弧、最後のフロンティア。

私はあなたがこれを探していたと思います:

If (Range("calcu") = "Orifice diameter" Or Range("calcu") = "Perforated area") _
   And Range("oridia").Value < Range("gasinp").Value Then
于 2013-10-25T14:06:36.960 に答える