I have following subroutine which prints the array elements:
Sub printArray(arr() As Variant) Dim i, lowerBound, upperBound As Integer lowerBound = LBound(ar
A Variant (which may happen to contain an array) is not the same as an array of Variants. You need to change this line:
Dim arr As Variant
to this:
Dim arr() As Variant