写了一个简单的宏,设置段落的字体、字号以及对齐方式,楼主参考一下: Sub temp() Dim i As Integer For i = 1 To ThisDocument.Paragraphs.Count ThisDocument.Paragraphs(i).Range.Font.Name = "黑体" ThisDocument.Paragraphs(i).Range.Font.Size = 20 ThisDocument.Paragraphs(i).Format.Alignment = wdAlignParagraphCenter Next End Sub
Sub temp()
Dim i As Integer
For i = 1 To ThisDocument.Paragraphs.Count
ThisDocument.Paragraphs(i).Range.Font.Name = "黑体"
ThisDocument.Paragraphs(i).Range.Font.Size = 20
ThisDocument.Paragraphs(i).Format.Alignment = wdAlignParagraphCenter
Next
End Sub
然后把自己期望的效果操作一遍;
再停止录制宏,打开编辑器,对照自动生成的宏代码,自己修改所需部分即可。