title: What is switch in VBA, a statement or a function?
body: <p>In VBA, I've always considered things like <code>for loop</code>, <code>if statement</code> and <code>select case</code> to be statements while <code>switch</code> to be a function. After some Google search, I  realized that <code>switch</code> is most of the time referred to as switch statement.</p>
  <p>At <a href="https://www.techonthenet.com/excel/formulas/index_vba.php" rel="nofollow noreferrer">tech on the net</a>, it was categorically classified as a function but together with <code>for loop</code>, <code>if statement</code> etc.</p>
  <p>My question: is <code>switch</code> a statement or a function in excel VBA? Also, what exactly differentiates a statement from a function?</p>