I wrote the following:
Sub mark6()
Dim A(6) As String
For i = 1 To 6
A(i) = InputBox("Enter Number " & i)
Next i
End Sub
I would like to know how to write the script so as to rearrange and sort the 6 numbers from the smallest to the bigest. ie A(1) is the smallest and A(6) is the biggest. thanks.
Sub mark6()
Dim A(6) As String
For i = 1 To 6
A(i) = InputBox("Enter Number " & i)
Next i
End Sub
I would like to know how to write the script so as to rearrange and sort the 6 numbers from the smallest to the bigest. ie A(1) is the smallest and A(6) is the biggest. thanks.
Last edited: