title: VBA - call function without return variable
body: <p>i have function:</p>
  
  <pre><code>Function importCSV(fileName As Variant) As Boolean
  
  ' some code
  ' no importCSV = TRUE
  
  end Function
  </code></pre>
  
  <p>i call this function</p>
  
  <pre><code>importCSV (fileName As Variant)
  </code></pre>
  
  <p>every do OK, bud when a modific function.</p>
  
  <pre><code>Function importCSV(fileName As Variant, linkToHeader As Boolean) As Boolean
      ' some code
      ' no importCSV = TRUE
  
  end Function
  </code></pre>
  
  <p>i cant call function like this</p>
  
  <pre><code>importCSV (fileName As Variant, TRUE)
  </code></pre>
  
  <p>VBA detect syntax error and a must call</p>
  
  <pre><code>a = importCSV(fileName As Variant, TRUE)
  </code></pre>
  
  <p>Why?</p>