本帖最后由 iwangyi 于 2018-9-6 08:28 编辑
Sub CC()
NROW = [d65536].End(3).Row
For N = 2 To NROW
If InStr(Cells(N, 3), "NO") > 0 And InStr(Cells(N, 4), "MICCE-SD") > 0 Then
Cells(N, "O") = "NO-REJECT"
End If
If InStr(Cells(N, 3), "MT") > 0 And InStr(Cells(N, 5), "AT") > 0 Then
Cells(N, "O") = "(23-PP{1,4}23-PS{8,13}32-PP{5,7,8}23-PS{6,7,10}"
End If
If InStr(Cells(N, 3), "BT") > 0 And InStr(Cells(N, 5), "TR") > 0 Then
Cells(N, "O") = "BT{32-PP{5,6}"
End If
If InStr(Cells(N, 3), "MT") > 0 And InStr(Cells(N, 5), "YW") > 0 Then
Cells(N, "O") = "(23-PP{1,4}23-PS{8,13}32-PP{5,7,8}23-PS{6,7,10}"
End If
If InStr(Cells(N, 3), "MT") > 0 And InStr(Cells(N, 5), "4Y") Then
Cells(N, "O") = "LOW ALAPA"
End If
If InStr(Cells(N, 3), "MT") > 0 Then Cells(N, "P") = 5
If InStr(Cells(N, 3), "BT") > 0 Then Cells(N, "P") = 12
If InStr(Cells(N, 3), "KB") > 0 Then Cells(N, "P") = 12
If InStr(Cells(N, 3), "QE") > 0 Then Cells(N, "P") = 6
If InStr(Cells(N, 3), "NO") > 0 Then Cells(N, "P") = "NA"
Next
End Sub |