title: VBA collection: list of keys
body: <p>After I add some values to the VBA collection, is there any way to retain the list of all keys?</p>
  
  <p>For example</p>
  
  <pre><code>Dim coll as new  Collection
  Dim str1, str2, str3
  str1="first string"
  str2="second string"
  str3="third string"
  coll.add str1, "first key"
  coll.add str2, "second key"
  coll.add str3, "third key"
  </code></pre>
  
  <p>I know how to retain the list of strings:</p>
  
  <pre><code>first string
  second string
  third string
  </code></pre>
  
  <p>Once again: is there any way to retain the keys?</p>
  
  <pre><code>first key
  second key
  third key
  </code></pre>
  
  <p>Note: <em>I'm using VBA through AutoCAD 2007</em></p>