C
CGeorges
Hello,
I need to sort a table with BubbleSort.
I know how the algorithm works:
For i = left To right - 1
If student_temp(i) > student_temp(i + 1) Then
Call swap(i, i + 1)
End If
Private Sub swap
Dim hold As String
hold = student_temp(j)
student_temp(j) = student_temp(k)
student_temp(k) = hold
but I have no idea how this works on an Excel sheet. How do I access
the rows? Do I need an array?
I will appreciate any help.
Thanks in advance
I need to sort a table with BubbleSort.
I know how the algorithm works:
For i = left To right - 1
If student_temp(i) > student_temp(i + 1) Then
Call swap(i, i + 1)
End If
Private Sub swap
Dim hold As String
hold = student_temp(j)
student_temp(j) = student_temp(k)
student_temp(k) = hold
but I have no idea how this works on an Excel sheet. How do I access
the rows? Do I need an array?
I will appreciate any help.
Thanks in advance