2012-02-28 92 views
0
Dim arrS(1000, 6) As String 

Sub FromHere() 
'(I've already filled the array and just want to pass it from here): 

Call ToThere(someArray) 
End Sub 

Sub ToThere(someArray) 
MsgBox "And I want to use it: " & someArray(2, 2) 
End Sub 

我正在嘗試的一切都是劃線,不會讓它脫離編輯器。傳遞一個二維數組作爲參數:

您能告訴我應該如何在頂部和每個語句中聲明/標註這個數據,以便它能夠運行嗎?

回答

5
Sub ToThere(someArray() as string)