1个回答
展开全部
Sub s()
Dim a$, b$, c As Range, d As Object, i%
a = [t11]
b = [t12]
If Len(a) <> Len(b) Then
MsgBox "Ìõ¼þ×Ö·û²»Ò»ÖÂ"
Exit Sub
End If
Set d = CreateObject("scripting.dictionary")
For i = 1 To Len(a)
d(Mid(a, i, 1) & Mid(b, i, 1)) = ""
Next
For Each c In [c19:l28]
If d.exists(c.Text) Then
c.Interior.ColorIndex = 6
End If
Next
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询