|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
Sub limonet()
Dim i%
For i = 2 To 12
If Cells(i, "A") <> Cells(i, "B") Then
If Len(Cells(i, "A")) > Len(Cells(i, "B")) Then
Cells(i, "A").Characters(Len(Cells(i, "B")) - 1, 3).Font.Color = vbRed
Cells(i, "B").Characters(Len(Cells(i, "B")) - 1, 1).Font.Color = vbRed
Else
Cells(i, "A").Characters(Len(Cells(i, "A")) - 1, 1).Font.Color = vbRed
Cells(i, "B").Characters(Len(Cells(i, "A")) - 1, 3).Font.Color = vbRed
End If
End If
Next i
End Sub
|
|