Sub ChineseFontToFangSong() For Each para In ActiveDocument.Paragraphs For Each run In para.Range.Characters If run.Font.NameFarEast <> '仿宋' And IsChinese(run.Characters) Then run.Font.NameFarEast = '仿宋' run.Font.Name = '仿宋' End If Next run Next para End Sub

Function IsChinese(text As String) As Boolean For i = 1 To Len(text) If AscW(Mid(text, i, 1)) >= &H4E00 And AscW(Mid(text, i, 1)) <= &H9FFF Then IsChinese = True Exit Function End If Next i IsChinese = False End Function


原文地址: https://www.cveoy.top/t/topic/nHdZ 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录