|
可以试试:
- Sub test()
- Application.ScreenUpdating = False
- For j = 2 To 2482
- n = Len(Cells(j, 2))
- m = Len(Cells(j, 4))
- For i = 1 To n
- z = Cells(j, 2).Characters(Start:=i, Length:=1).Font.Size
- If z = 9 Then c = c & Cells(j, 2).Characters(Start:=i, Length:=1).Text
- Next
- Cells(j, 2).Value = c
- Cells(j, 2).Font.ColorIndex = xlAutomatic
- Cells(j, 2).Font.Size = 9
- c = ""
- For i = 1 To m
- zz = Cells(j, 4).Characters(Start:=i, Length:=1).Font.Size
- If zz = 9 Then c = c & Cells(j, 4).Characters(Start:=i, Length:=1).Text
- Next
- Cells(j, 4).Value = c
- Cells(j, 4).Font.ColorIndex = xlAutomatic
- Cells(j, 4).Font.Size = 9
- c = ""
- Next
- Application.ScreenUpdating = True
- End Sub
复制代码 |
|