excel vba合并字符串

2025-06-24 09:23:22
推荐回答(1个)
回答1:

Sub ss()
    Dim c As Range
    s = "出"
    For Each c In [b5:c6]
        For i = 2 To Len(c)
            If Characters(i, 1).Font.ColorIndex = xlAutomatic Then
                s = s & Mid(c, i, 1)
            End If
        Next
    Next
    [b1] = s
End Sub