|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
- Sub 结果()
- Dim m, i As Integer
- For i = 1 To 12
- a = Cells(i + 1, 4).Value
- For m = 1 To 6
- Select Case a
- Case Is >= Worksheets("销售考核标准").Cells(i + 1, 9)
- Cells(i + 1, 5) = Worksheets("销售考核标准").Cells(1, 9)
- Exit For
- Case Worksheets("销售考核标准").Cells(i + 1, 9 - m) To Worksheets("销售考核标准").Cells(i + 1, 10 - m) - 1
- Cells(i + 1, 5) = Worksheets("销售考核标准").Cells(1, 9 - m)
- End Select
- Next
- If Cells(i + 1, 5) = "" Then
- Cells(i + 1, 5) = "低于评级标准"
- End If
- Next
- End Sub
复制代码
|
|