2,462
社区成员
发帖
与我相关
我的任务
分享
Selection.Find.ClearFormatting '清除所有查找格式
Selection.Find.Font.Underline = wdUnderlineSingle '查找条件加上有单下划线
Selection.Find.Font.UnderlineColor = vbRed '并且下划线颜色是红色的
Selection.Find.Replacement.ClearFormatting '清除所有替换格式
Selection.Find.Replacement.Font.Color = vbBlue '设置把查找到的部分字体变成蓝色
Selection.Find.Execute Replace:=wdReplaceAll '干!!
selection.Font.color=Selection.Font.UnderlineColor