title: What does the keyword Set actually do in VBA?
body: <p>Hopefully an easy question, but I'd quite like a technical answer to this!</p>
  
  <p>What's the difference between:</p>
  
  <pre><code>i = 4
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Set i = 4
  </code></pre>
  
  <p>in VBA? I know that the latter will throw an error, but I don't fully understand why.</p>