EXCEL VBA重复项删除1
发布网友
发布时间:2023-10-10 13:12
我来回答
共2个回答
热心网友
时间:2024-12-05 01:34
ActiveSheet.Range("$A$39:$J$1308").RemoveDuplicates Columns:=Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), Header:=xlNo
热心网友
时间:2024-12-05 01:34
Sub s()
Dim rg As Range, c As Range
Set rg = [a39:ad1308]
Set d = CreateObject("scripting.dictionary")
For Each c In rg
d(c.Text) = d(c.Text) + 1
Next
For Each c In rg
If d(c.Text) > 1 Then c.ClearContents
Next
End Sub