title: vba passing an array to a Dictionary.keys
body: <p>i have an array of strings <code>MyStrArray</code> and i have a dictionary object <code>MyDict</code></p>
  
  <p><strong>How</strong> do I pass <code>MyStrArray</code> to <code>MyDict.keys</code> <strong>Without looping</strong>? is it possible? </p>
  
  <p>if i try <code>MyDict.keys = MyStrArray</code> I get an error <em>"object Doesn't support this method"</em> and the keys bounds are <code>MyDict.Keys(0 to -1)</code>i know what that means and i know i can loop through the array to fill the dict. as such (simple example)</p>
  
  <pre><code>on error resume next 
      for i= Lbound(MyStrArray) To Ubound(MyStrArray)
      MyDict.add key:=MyStrArray(i), item:=whatever
      next i
  </code></pre>
  
  <p>so, is there a way around that??</p>