title: if condition with "and" combine "multiple or" in Vba Excel
body: <p>I have been making validation in macro vba...</p>
  
  <p>How to make if condition with "and" combined with "multiple or" in vba?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>If (not cook = True) And (if (exp_gas &gt; 0) or (exp_woodburn &gt; 0) or _
      (exp_oil &gt; 0) or (margarine &gt; 0)) Then
      MsgBox "He doesn't cook", vbInformation 
  
  End If
  </code></pre>
  
  <p>It gives me syntax error.</p>