0
我不知道如何創建宏來查找字符的重複項。查找字符的重複項
此圖顯示預期結果。
這張照片是我的實際結果。
這是我嘗試代碼:
Sub atrod_dublikatus()
' atrod_dublikatus Macro
Dim a, b, skaits As Integer
skaits = 0
For a = 1 To 11
For b = a + 1 To 11
If Cells(a, 1).Value = Cells(b, 1) Then
skait = skait + 1
Cells(a, 2).Value = skait
Cells(b, 2).Value = skait
End If
Next b
Next a
End Sub