title: Return a string from a VBA function
body: <p>I am following a tutorial and get a compile error at the hello world example function.</p>
  
  <p>What's wrong here?</p>
  
  <p><a href="https://i.stack.imgur.com/8JC3E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8JC3E.png" alt="enter image description here"></a></p>
  
  <p>Here is the code I tried:</p>
  
  <pre><code>Function hi()
      hi = "hello world"
  End Function`
  </code></pre>
  
  <p>edit: suggested declarations didn't help
  <a href="https://i.stack.imgur.com/Hrf2G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Hrf2G.png" alt="enter image description here"></a></p>
  
  <p>edit: getting closer. brackets seem to be a problem when calling "hi()"
  <a href="https://i.stack.imgur.com/LOYOa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LOYOa.png" alt="enter image description here"></a></p>