title: How do I get a subset of elements in an array in excel vba?
body: <p>How do I get the 3rd through 6th elements in an array in excel vba? Something like the following.</p>
  
  <pre><code>    Dim x(9) as variant, y(3) as variant
  
      y(0:3) = x(2:5)
  </code></pre>