title: Why am I getting a "Subscript is out of range" error?
body: <p>I have the following code that is within a <code>UserForm</code>, called near the end of a bunch of other processes in the main module, but when it reaches <code>Me.GPListBox.List(iterI, 0) = Split (CCGPValues(key), " - ")(0)</code> I get an error stating the subscript is out of range.</p>
  
  <p>In the <code>Debug.Print</code> directly before the <code>For Each</code>, the console outputs "Jorge Cardona". This is the first piece of the split. <code>CCGPValues(key)</code> equals "Jorge Cardona - $207.31", but when it calls the same split within the GPListBox, it breaks. Why is this happening when it works via <code>Debug.print</code>?</p>
  
  <pre><code>    Dim key As Variant, iterI As Integer, iterX As Integer
      Debug.Print Split(CCGPValues(147), " - ")(0)
      For Each key1 In CCGPValues.Keys
              Me.GPListBox.AddItem
              Me.GPListBox.List(iterI, 0) = Split(CCGPValues(key), " - ")(0) 'Breaks here
              Me.GPListBox.List(iterI, 1) = Split(CCGPValues(key), " - ")(1)
              CCGPValuesCount = CCGPValuesCount + 1
              iterI = iterI + 1
      Next key1
  </code></pre>