Define Array in VBA setting step value
<p>I want to define an array that goes from 0 till 50 with steps of 10. I would look like: <code>arr = [0;10;20;30;40;50]</code></p>

<p>Should be something like </p>

<pre><code>Dim arr As Variant
arr = Array(0:10:50)
</code></pre>

<p>but this is obviously not working.</p>

<p>Any idea?</p>