|
- Sub ChangeUnderlineColor()
- Dim i$
- i = MsgBox("<YES>Green <NO>Pink <CANCEL>Blue", 3 + 48, "Select Color")
- With ActiveDocument.Content.Find
- .ClearFormatting
- .Font.Underline = wdUnderlineSingle
- With .Replacement
- .ClearFormatting
- If i = vbYes Then
- .Font.UnderlineColor = wdColorGreen
- ElseIf i = vbNo Then
- .Font.UnderlineColor = wdColorPink
- Else
- .Font.UnderlineColor = wdColorBlue
- End If
- End With
- .Execute FindText:="", ReplaceWith:="", Format:=True, Replace:=wdReplaceAll
- End With
- End Sub
- Sub ChangeUnderlineSingle2Double()
- With ActiveDocument.Content.Find
- .ClearFormatting
- .Font.Underline = wdUnderlineSingle
- With .Replacement
- .ClearFormatting
- .Font.Underline = wdUnderlineDouble
- End With
- .Execute FindText:="", ReplaceWith:="", Format:=True, Replace:=wdReplaceAll
- End With
- End Sub
复制代码 |
评分
-
1
查看全部评分
-
|