word VBA_替换下划线
生活随笔
收集整理的這篇文章主要介紹了
word VBA_替换下划线
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Sub 替換下劃線()Selection.HomeKey wdStorySelection.Find.ClearFormattingSelection.Find.Font.Underline = wdUnderlineThickSelection.Find.Replacement.ClearFormatting'Selection.Find.Replacement.Font.Underline = wdUnderlineThickWith Selection.Find.Text = "[!^13^l]".Replacement.Text = "__".Forward = True.Wrap = wdFindContinue.Format = True.MatchCase = False.MatchWholeWord = False.MatchByte = False.MatchAllWordForms = False.MatchSoundsLike = False.MatchWildcards = TrueEnd WithSelection.Find.Execute Replace:=wdReplaceAllSelection.HomeKey wdStorySelection.Find.ClearFormattingSelection.Find.Font.Underline = wdUnderlineSingleSelection.Find.Replacement.ClearFormatting'Selection.Find.Replacement.Font.Underline = wdUnderlineThickWith Selection.Find.Text = "[!^13^l]".Replacement.Text = "__".Forward = True.Wrap = wdFindContinue.Format = True.MatchCase = False.MatchWholeWord = False.MatchByte = False.MatchAllWordForms = False.MatchSoundsLike = False.MatchWildcards = TrueEnd WithSelection.Find.Execute Replace:=wdReplaceAll
End Sub
?
總結
以上是生活随笔為你收集整理的word VBA_替换下划线的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 03-【nginx】nginx源码分析-
- 下一篇: 基于51/52单片机毕业设计课题选题表/