Hi,
I'm wondering what's wrong with this code:
Public Function process()
Dim arr1() As String
ReDim arr1(2)
arr1(0) = "header1"
arr1(1) = "header2"
arr1(2) = "header3"
process = arr1
End Function
Private Sub Form_Load()
Dim arr2() As String
arr2 = process()
End Sub
Thanks
Dilip
I'm wondering what's wrong with this code:
Public Function process()
Dim arr1() As String
ReDim arr1(2)
arr1(0) = "header1"
arr1(1) = "header2"
arr1(2) = "header3"
process = arr1
End Function
Private Sub Form_Load()
Dim arr2() As String
arr2 = process()
End Sub
Thanks
Dilip