|
- Sub gj23w98()
- Set d = CreateObject("scripting.dictionary")
- Range("n2:n" & Rows.Count).ClearContents
- arr = Sheet3.[b1].CurrentRegion
- For i = 2 To UBound(arr)
- d(Trim(arr(i, 2))) = arr(i, 4)
- Next
- brr = [a1].CurrentRegion
- For i = 2 To UBound(brr)
- If Not d.exists(Trim(brr(i, 3))) Then
- brr(i, 14) = "需在U8建客户编码"
- Else
- brr(i, 14) = "客户编码正确"
- End If
- Next
- [a1].CurrentRegion = brr
- If Application.CountIf(Range("n:n"), "需在U8建客户编码") > 0 Then Cells(1, 14) = "发现新客户" Else Cells(1, 14) = "客户编码正确"
- End Sub
复制代码 |
评分
-
1
查看全部评分
-
|