Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim intScore As Integer
If IsNumeric (txtScore) Then
intScore = Val (txtScore)
Select Case intScore
Case 1 To 40
txtGrade = "F"
Case 41 To 50
txtGrade = "E"
Case 51 To 60
txtGrade = "D"
Case 61 To 70
txtGrade = "C"
Case 71 To 80
txtGrade = "B"
Case 81 To 100
txtGrade = "A"
Case Else
txtGrade = "Invalid"
End Select
Else
MsgBox "Score is not a numeric value"
End If
Grade = Switch(Score < 60, "F", _
Score >= 60 And Score < 70, "D", _
Score >= 79 And Score < 80, "C", _
Score >= 80 And Score < 90, "B", _
Score > 89, "A")
=Switch([txtScore]<60,"F",[txtScore]>=60 And [txtScore]<70,"D",[txtScore]>=70 And [txtScore]<80,"C",[txtScore]>=80 And [txtScore]<90,"B",[txtScore]>89,"A")