ziad alsayed
Well-known Member
- Joined
- Jul 17, 2010
- Messages
- 665
dear all
i am using the below function and it is working, but if i use in a cell that is formatted is percentage (60%, 80%....) it will not work.
appreciate any assistance
i am using the below function and it is working, but if i use in a cell that is formatted is percentage (60%, 80%....) it will not work.
appreciate any assistance
Code:
Function GetRemarks(rng As Range) As String
Dim Appraisal As Byte
Appraisal = rng.Value
Select Case Appraisal
Case 60 To 79
GetRemarks = "Meet Expectation"
Case Is > 80
GetRemarks = "Above Expectation"
Case Is < 60
GetRemarks = "Below Expectation"
End Select
End Function