title: excel vba - insert value into cell
body: <p>I tried to put data into a cell via a VBA script.</p>
  <p>Why can't I call it directly in the worksheet with function()?</p>
  <p>If I call the function direct in the editor it works.</p>
  <h1>Example code:</h1>
  <pre><code> Function sbWriteIntoCellData()
         Workbooks(1).Worksheets(1).Cells(1, 1) = &quot;Hello World&quot;;
   End Function
  </code></pre>