Guest User

Untitled

a guest
Jun 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. Sub Document_Open()
  2. If ActiveDocument.Sections.Count > 1 Then Exit Sub
  3.  
  4. Selection.EndKey Unit:=wdStory
  5. ActiveDocument.Range(Start:=Selection.Start, End:=Selection.Start). _
  6. InsertBreak Type:=wdSectionBreakNextPage
  7. Selection.Start = Selection.Start + 1
  8.  
  9. With ActiveDocument.Range(Start:=Selection.Start, End:=ActiveDocument. _
  10. Content.End).PageSetup
  11. .LeftMargin = CentimetersToPoints(2.54) 'CHANGE THIS it's margin of new pages!
  12. .SectionStart = wdSectionNewPage
  13. End With
  14. End Sub
Add Comment
Please, Sign In to add comment