title: How to highlight a cell in Excel using conditional if?
body: <p>How can i <strong>conditionally</strong> assign color to cells  ?</p>
  
  <p>I have the following <em>function</em> that is supposed to assign different color to cells depending on the if statement:</p>
  
  <pre><code> Function .....
      ..........
      If (IsNumeric(x)  Then
      .Color = 65344                  // does not work
      Else
      ...........
      End If
      End Function
  </code></pre>
  
  <p>How to do this in a correct way?</p>