title: vba: return dictionary from function
body: <p>this outlines what i am trying to do.</p>
  
  <p>this is not working for me, and it is unclear why.</p>
  
  <p>thank you in advance for any and all help.</p>
  
  <pre><code>        Sub mySub()
          dim myDict as Dictionary
              myDict=new Dictionary
  
                  myDict=myFunc()
  
          End Sub
  
          Function myFunc()
              dim myDict2
                  set myDict2 = new Dictionary
  
                      'some code that does things and adds to myDict2'
  
              myFunc=myDict2
          End Function
  </code></pre>