title: How to pass variant to double array VBA?
body: <p>My idea was to create a function to pass double arrays like this:</p>
  
  <pre><code>Function pass(a() As Double, b() as double) As Boolean
  Dim i As Integer, j As Integer
  ReDim a(0 To UBound(b, 1), 0 To UBound(b, 2))
      For i = 0 To UBound(a, 1)
          For j = 0 To UBound(a, 2)
              a(i, j) = b(i, j)
          Next
      Next
  End Function
  </code></pre>
  
  <p>such that one could use:</p>
  
  <pre><code>pass(a,b)
  </code></pre>
  
  <p>and then a=b.</p>
  
  <pre><code>a=b
  </code></pre>
  
  <p>doesn't work.. (oh god I miss matlab..)</p>
  
  <p>OK, back to the problem:</p>
  
  <p>This works fine for two double arrays but if I get a variant, and as I use this I can get a variant, this doesn't work. So is there a solution for passing variant values to double arrays? The data is structured like a double array but has not the type double().</p>