E
Excel Monkey
I am having trouble using a Bubble Sort Sub. The issue is in the sub that
calls the sort sub. I keep getting a "Compile Error: Type Mismatch: array
or user defined type expected.". What am I doing wrong?
Sub Test()
Dim x As Variant
ReDim x(0 To 2)
x(0) = 1
x(1) = 10
x(2) = 3
BubbleSort (x)
Sub BubbleSort(MyArray() As Variant)
'Additional Sort code here
End Sub
Thanks
EM
calls the sort sub. I keep getting a "Compile Error: Type Mismatch: array
or user defined type expected.". What am I doing wrong?
Sub Test()
Dim x As Variant
ReDim x(0 To 2)
x(0) = 1
x(1) = 10
x(2) = 3
BubbleSort (x)
Sub BubbleSort(MyArray() As Variant)
'Additional Sort code here
End Sub
Thanks
EM