Private Sub Command1_Click()Dim x(9) As IntegerDim i As IntegerFor i = 0 To 9 x(i) = iNext Call iArr(x)End SubPrivate Function iArr(arr() As Integer) As Integer Dim i As Integer For i = 0 To UBound(arr) Debug.Print arr(i) Next End Function