Sub 字体修改() Dim ws As Worksheet Set ws = ActiveSheet Dim columns As Variant columns = Array("A", "B", "D", "E") For Each col In columns Set rng = ws.Range(col & "1:" & col & ws.Cells(ws.Rows.Count, col).End(xlUp).Row) For Each cell In rng cellText = cell.Value If Len(cellText) >= 5 Then firstSixChars = Left(cellText, 5) remainingChars = Mid(cellText, 6) Else firstSixChars = cellText remainingChars = "" End If With cell.Characters(Start:=1, Length:=Len(firstSixChars)) .Font.Size = 9 End With If Len(remainingChars) > 0 Then With cell.Characters(Start:=Len(firstSixChars) + 1, Length:=Len(remainingChars)) .Font.Size = 6.4 End With End If Next cell Next col End Sub 单元格格式手动修改成文本