|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
Sub jimin()
' VBA问题咨询 扣扣 494585639
Dim arr, d1 As Object, brr(1 To 10000, 1 To 1)
Set d1 = CreateObject("scripting.dictionary")
arr = Sheet1.Range("a1:a" & Sheet1.Range("a65535").End(xlUp).Row)
For i = 2 To UBound(arr)
d1(arr(i, 1)) = "√"
Next
arr = Sheet1.Range("c2:c" & Sheet1.Range("c65535").End(xlUp).Row)
For i = 1 To UBound(arr)
If d1.exists(arr(i, 1)) Then
brr(i, 1) = d1(arr(i, 1))
Else
brr(i, 1) = "×"
End If
Next
Sheet1.Range("f2:f10000").ClearContents
Sheet1.Range("f2").Resize(UBound(brr), UBound(brr, 2)) = brr
End Sub
Private Sub CommandButton1_Click()
jimin
MsgBox "OK"
End Sub
|
|