|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
代码修改如下:
- Sub yy()
- Select Case fs
- Case 90 To 100
- Arr1(r, 4) = Arr1(r, 4) + 1
- Case 80 To 89
- Arr1(r, 5) = Arr1(r, 5) + 1
- Case 70 To 79
- Arr1(r, 6) = Arr1(r, 6) + 1
- Case 60 To 69
- Arr1(r, 7) = Arr1(r, 7) + 1
- Case 50 To 59
- Arr1(r, 8) = Arr1(r, 8) + 1
- Case 40 To 49
- Arr1(r, 9) = Arr1(r, 9) + 1
- Case 30 To 39
- Arr1(r, 10) = Arr1(r, 10) + 1
- Case 20 To 29
- Arr1(r, 11) = Arr1(r, 11) + 1
- Case 10 To 19
- Arr1(r, 12) = Arr1(r, 12) + 1
- Case 0 To 9
- Arr1(r, 13) = Arr1(r, 13) + 1
- End Select
- If fs >= 60 Then Arr1(r, 16) = Arr1(r, 16) + 1 '及格人数
- If fs >= 80 Then youx(r) = youx(r) + 1 '优秀人数
- If fs >= zgf(r) Then zgf(r) = fs
- If fs <= zdf(r) Then zdf(r) = fs
- End Sub
复制代码 |
|