title: vba Dictionary - returning KEY from Items()
body: <p>I have a dictionary where each <code>VALUE</code> is another dictionary. In my code I loop through the top-level dictionary using <code>.Items()(i)</code>. By the way, it needs to stay this way.</p>
  
  <pre><code>Dim dic As New Scripting.Dictionary
  Dim myValue As New Scripting.Dictionary
  
  For i = 0 to dic.count-1
    ' 
    ' the VALUE of the KEY/VALUE pair is...
    set myValue = dic.Items()(i) 
    '
    ' how do I retrieve the KEY???
    '
  Next i
  </code></pre>
  
  <p><strong>My question:</strong> </p>
  
  <p>How do I retrieve the KEY of the top-level dictionary in this loop structure? This is probably super obvious, I'm just drawing a blank here.</p>