|
楼主,明显你用的是2007或2010或2013版本,我用的是2003版本,下面是两个《证书调整行数》宏,2003版本的,不知管用不管用,试试吧!(目标:邮件合并后未删除分节符时第2段落强制1行):
*******************
Sub 证书调整行数_New()
On Error Resume Next
Dim i As Section, k As Integer, l As String
For Each i In ActiveDocument.Sections
i.Range.Paragraphs(2).Range.Select
Do
Selection.Paragraphs(1).Range.Select
Selection.HomeKey Unit:=wdLine
Selection.EndKey Unit:=wdLine
If Asc(Selection) <> 13 Then Selection.Paragraphs(1).Range.Select: Selection.Font.Scaling = Selection.Font.Scaling - 2 Else Exit Do
Loop
Next
End Sub
Sub 证书调整行数_Old()
On Error Resume Next
Dim i As Section, k As Integer, l As String
For Each i In ActiveDocument.Sections
i.Range.Paragraphs(2).Range.Select
CommandBars("Word Count").Controls(2).Execute
l = CommandBars("Word Count").Controls(1).List(6)
k = Int(Mid(l, 1, Len(l) - 1))
If k > 1 Then
Do
Selection.Font.Scaling = Selection.Font.Scaling - 2
CommandBars("Word Count").Controls(2).Execute
l = CommandBars("Word Count").Controls(1).List(6)
k = Int(Mid(l, 1, Len(l) - 1))
Loop Until k = 1
End If
Next
End Sub |
|