我想在 MS Word 文档中将每个句子的第一个字母加粗。实现这一目标的好方法是什么?
在 VBA 中非常简单
Sub BoldFirstLetterInSentence()
Dim ad As Document
Set ad = ActiveDocument
Dim sen As Range
For Each sen In ad.Sentences
sen.Words.First.Characters.First.Font.Bold = True
/* sen.Words(1).Characters(1).Font.Bold = True also works */
Next
End Sub
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)