Pass the array by reference within the function.
Public Function fGetContentsStream(ByRef arrayOLE() As Byte, _
FileExtension As String, _
Optional FileNamePackage As String = "") As Boolean
Now in the function itself, you can redim the array as desired.
' Size our main array
ReDim arrayOLE(0 To UBound(arrayB))
--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Troy" <Tr**********@gmail.comwrote in message
news:11**********************@e65g2000hsc.googlegr oups.com...
>I have a dilemma where I am creating a dynamic two dimensional array
and filling it with information from a .csv file. Unfortunately,
later when I try to call that information back from the array I get an
error or I don't get anything back at all. I'm not sure how to make a
dynamic array public (so to speak) so that I can call the information
back between modules or forms. Can anyone help? Thanks.