Sub ReNumber()
Dim Arr, brr, a As String, j&, i&, x, y, z, zfbj
Arr = [A5:A14]
brr = Range("c5:c" & [c10000].End(3).Row)
For j = 1 To UBound(brr)
zfbj = ""
y = brr(j, 1)
If Len(y) > 0 Then
For i = 1 To UBound(Arr)
x = Arr(i, 1)
For z = 1 To Len(y)
If InStr(x, Mid(y, z, 1)) > 0 And zfbj Like "*" & x & "*" = False Then '''Sgn(InStr(x, y)) > 0
If zfbj = "" Then zfbj = x Else zfbj = zfbj & "," & x: Exit For
End If
Next
Next
Cells(4 + j, 7) = zfbj
End If
Next
End Sub
Sub 清除()
Range("g5:g1000").ClearContents
End Sub
|