Hi,
I am trying to create a macro which says that if score is more than or equal to 80 then grade it as "A" or else "A-"
A B C
john 75
the below macro I created but its not working
Kindly advise
I am trying to create a macro which says that if score is more than or equal to 80 then grade it as "A" or else "A-"
A B C
john 75
the below macro I created but its not working
Code:
Sub m()
Dim score As Integer
score = ActiveCell.Value
If score >= 80 Then ActiveCell(1, 2).Value = "A"
ElseIf score < 80 Then ActiveCell(1, 2).Value = "A-"
End If
End sub
Kindly advise
Last edited by a moderator: