|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
Sub SHISHI()
Dim tb As Table, c As Cell, p As Range
Set p = IIf(Selection.Type = wdSelectionIP, ActiveDocument.Content, Selection.Range)
If p = ActiveDocument.Content Then
k = MsgBox("要进行全文处理吗?", vbYesNoCancel + vbQuestion, "全文处理判断")
If k <> vbYes Then Exit Sub
End If
If p.Tables.Count = 0 Then Exit Sub
For Each tb In p.Tables
For Each c In tb.Columns(2).Cells
Select Case Len(c.Range) - 2
Case 20
c.Range.Font.ColorIndex = wdRed
Case 19
c.Range.Font.ColorIndex = 11
Case 10
c.Range.Font.ColorIndex = 2
End Select
Next
Next
End Sub |
评分
-
1
查看全部评分
-
|