word 文档刷文字格式

 WORD文档增长的宏文件,oop

做用:对全文中文字体更改成,DFKai-SB字体

  :对英文字母字体更改成,Times New Romanspa

 

Sub AutoClose()
    Selection.WholeStory
    Selection.Font.NameFarEast = "DFKai-SB"
    Selection.Font.NameAscii = "Times New Roman"
    Selection.HomeKey Unit:=wdStory
    Do
        Selection.Find.ClearFormatting
        Selection.Find.Execute findtext:="^#"
        If Selection.Find.Found = True Then Selection.Font.Name = "Times New Roman"
    Loop Until Selection.Find.Found = False
End Sub
相关文章
相关标签/搜索