Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 2

If TextBox6.Text > TextBox7.Text And TextBox6.Text > TextBox8.

Text And
TextBox6.Text > TextBox9.Text And TextBox6.Text > TextBox10.Text Then
MsgBox("The highest is:" & vbNewLine _
& "Name: " & TextBox1.Text & vbNewLine _
& "Score: " & TextBox6.Text _
, MsgBoxStyle.Information, Title:="Message")
ElseIf TextBox7.Text > TextBox6.Text And TextBox7.Text > TextBox8.Text And
TextBox7.Text > TextBox9.Text And TextBox7.Text > TextBox10.Text Then
MsgBox("The highest is:" & vbNewLine _
& "Name: " & TextBox2.Text & vbNewLine _
& "Score: " & TextBox7.Text _
, MsgBoxStyle.Information, Title:="Message")
ElseIf TextBox8.Text > TextBox6.Text And TextBox8.Text > TextBox7.Text And
TextBox8.Text > TextBox9.Text And TextBox8.Text > TextBox10.Text Then
MsgBox("The highest is:" & vbNewLine _
& "Name: " & TextBox3.Text & vbNewLine _
& "Score: " & TextBox8.Text _
, MsgBoxStyle.Information, Title:="Message")
ElseIf TextBox9.Text > TextBox6.Text And TextBox9.Text > TextBox7.Text And
TextBox9.Text > TextBox8.Text And TextBox9.Text > TextBox10.Text Then
MsgBox("The highest is:" & vbNewLine _
& "Name: " & TextBox4.Text & vbNewLine _
& "Score: " & TextBox9.Text _
, MsgBoxStyle.Information, Title:="Message")
ElseIf TextBox10.Text > TextBox6.Text And TextBox10.Text > TextBox7.Text
And TextBox10.Text > TextBox8.Text And TextBox10.Text > TextBox9.Text Then
MsgBox("The highest is:" & vbNewLine _
& "Name: " & TextBox5.Text & vbNewLine _
& "Score: " & TextBox10.Text _
, MsgBoxStyle.Information, Title:="Message")
End If

If TextBox6.Text < TextBox7.Text And TextBox6.Text < TextBox8.Text And


TextBox6.Text < TextBox9.Text And TextBox6.Text < TextBox10.Text Then
MsgBox("The lowest is:" & vbNewLine _
& "Name: " & TextBox1.Text & vbNewLine _
& "Score: " & TextBox6.Text _
, MsgBoxStyle.Information, Title:="Message")
ElseIf TextBox7.Text < TextBox6.Text And TextBox7.Text < TextBox8.Text And
TextBox7.Text < TextBox9.Text And TextBox7.Text < TextBox10.Text Then
MsgBox("The lowest is:" & vbNewLine _
& "Name: " & TextBox2.Text & vbNewLine _
& "Score: " & TextBox7.Text _
, MsgBoxStyle.Information, Title:="Message")
ElseIf TextBox8.Text < TextBox6.Text And TextBox8.Text < TextBox7.Text And
TextBox8.Text < TextBox9.Text And TextBox8.Text < TextBox10.Text Then
MsgBox("The lowest is:" & vbNewLine _
& "Name: " & TextBox3.Text & vbNewLine _
& "Score: " & TextBox8.Text _
, MsgBoxStyle.Information, Title:="Message")
ElseIf TextBox9.Text < TextBox6.Text And TextBox9.Text < TextBox7.Text And
TextBox9.Text < TextBox8.Text And TextBox9.Text < TextBox10.Text Then
MsgBox("The lowest is:" & vbNewLine _
& "Name: " & TextBox4.Text & vbNewLine _
& "Score: " & TextBox9.Text _
, MsgBoxStyle.Information, Title:="Message")
ElseIf TextBox10.Text < TextBox6.Text And TextBox10.Text < TextBox7.Text
And TextBox10.Text < TextBox8.Text And TextBox10.Text < TextBox9.Text Then
MsgBox("The lowest is:" & vbNewLine _
& "Name: " & TextBox5.Text & vbNewLine _
& "Score: " & TextBox10.Text _
, MsgBoxStyle.Information, Title:="Message")
End If

You might also like