|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
参与一下。。。- Sub ykcbf() '//2024.2.6
- Set d = CreateObject("Scripting.Dictionary")
- r = Me.Cells(Rows.Count, 1).End(3).Row
- arr = Me.Range("a1:c" & r)
- ReDim brr(1 To UBound(arr), 1 To 3)
- For i = 2 To UBound(arr)
- If arr(i, 3) = "C" Then
- s = arr(i, 1)
- If Not d.exists(s) Then
- m = m + 1
- brr(m, 1) = s
- brr(m, 2) = arr(i, 2)
- brr(m, 3) = arr(i, 3)
- End If
- End If
- Next
- Me.[f2:h10000] = ""
- Me.Columns(6).NumberFormatLocal = "@"
- Me.[f2].Resize(m, 3) = brr
- Set d = Nothing
- MsgBox "OK!"
- End Sub
复制代码
|
评分
-
1
查看全部评分
-
|