EXCEL VBA给区域1与区域2重复时,删除区域2内容
1个回答
展开全部
Sub xx()
Dim d
Set d = CreateObject("Scripting.Dictionary")
With [AF28:AO37]
n = .Count
For i = 1 To n
d(.Item(i)) = ""
Next i
End With
With [A39:J1038]
n = .Count
For i = 1 To n
If d.xeists(.Item(i)) Then .Item(i).ClearContents
Next i
End With
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询