title: Passing a List from C# to VBA
body: <p>I'm writing a DLL in C# that is to be used in VBA. One method I am writing will get a List of a custom type (PdfReaderPage). My question is this: Can I pass a List of a custom type into a VB Collection? I had this in mind to do</p>
  
  <pre><code>public Microsoft.VisualBasic.Collection GetPageByKeyWord(String keyword)
  {
      //Do some code to find correct page list
      //Get List&lt;PdfReaderPage&gt; myList
      Microsoft.VisualBasic.Collection VbCollection = myList;
      return VbCollection;
  }
  </code></pre>
  
  <p>Except I'm not sure if I can either A.) Convert a List into a Collection or B.) Am even going at this the best way. </p>