Hi Rachna ,see if the below code helps.Its not throwing type Mismatch error
Regards,
Ravi
Code:
public Arr
arr=Mytest
msgbox Arr(0)
Call mytest1( arr)
' Function Defination
Public function Mytest()
Mytest=Array(1,2,3,4)
End Function
Public function mytest1(Byref arr )
msgbox arr(1)
End Function
Ravi