title: VBA: Decrease iterations of loop after an array item has been deleted?
body: <p>In VBA for Excel:</p>
  
  <pre><code>For i = 0 To UBound(artMaster)
      For j = i To UBound(artMaster)
          If i &lt;&gt; j And artMaster(i).VDN = artMaster(j).VDN Then
              Call DeleteArrayItem(artMaster, j)
          End If
      Next j
  Next i
  </code></pre>
  
  <p>How can I decrease the iterations of the loop after I have deleted one of the array items?</p>