|
- Sub Section_DirectoryCover()
- '分节:目录/封面/正文
- If Documents.Count = 0 Then Documents.Add
- ActiveDocument.Range(0, 0).InsertBreak Type:=wdSectionBreakNextPage
- ActiveDocument.Range(0, 0).InsertBefore Text:="目 录" & vbCr & vbCr & vbCr
- ActiveDocument.Range(0, 0).InsertBreak Type:=wdSectionBreakNextPage
- ActiveDocument.Range(0, 0).InsertBefore Text:="封面" & vbCr & vbCr & vbCr
- ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary).Range.Delete
- With ActiveDocument.Sections(2).Footers(1)
- .LinkToPrevious = False
- With .PageNumbers
- .NumberStyle = wdPageNumberStyleUppercaseRoman
- .RestartNumberingAtSection = True
- .StartingNumber = 1
- .Add PageNumberAlignment:=wdAlignPageNumberCenter, FirstPage:=True
- End With
- End With
- With ActiveDocument.Sections(3).Footers(1)
- .LinkToPrevious = False
- With .PageNumbers
- .NumberStyle = wdPageNumberStyleNumberInDash
- .RestartNumberingAtSection = True
- .StartingNumber = 1
- End With
- End With
-
- ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).Range.ParagraphFormat.Borders(wdBorderBottom).LineStyle = wdLineStyleNone
- End Sub
复制代码 |
评分
-
1
查看全部评分
-
|