Do more with
Option Explicit
Public Sub CPSE_Plain()
On Local Error GoTo LocalError
10 Selection.WholeStory
11 If ActiveDocument.Styles(wdStyleNormal).Font.NameFarEast = ActiveDocument.Styles(wdStyleNormal).Font.NameAscii Then
12 ActiveDocument.Styles(wdStyleNormal).Font.NameAscii = ""
13 End If
14 ActiveDocument.Styles(wdStyleNormal).Font.NameFarEast = ""
15 ActiveDocument.Content.Orientation = wdTextOrientationHorizontal
16 ActiveDocument.PageSetup.LineNumbering.Active = False
17 ActiveDocument.PageSetup.Orientation = wdOrientPortrait
18 ActiveDocument.PageSetup.TopMargin = InchesToPoints(1)
19 ActiveDocument.PageSetup.BottomMargin = InchesToPoints(1)
20 ActiveDocument.PageSetup.LeftMargin = InchesToPoints(1.25)
21 ActiveDocument.PageSetup.RightMargin = InchesToPoints(1.25)
22 ActiveDocument.PageSetup.Gutter = InchesToPoints(0)
23 ActiveDocument.PageSetup.HeaderDistance = InchesToPoints(0.5)
24 ActiveDocument.PageSetup.FooterDistance = InchesToPoints(0.5)
25 ActiveDocument.PageSetup.PageWidth = InchesToPoints(8.27)
26 ActiveDocument.PageSetup.PageHeight = InchesToPoints(11.69)
27 ActiveDocument.PageSetup.FirstPageTray = wdPrinterLowerBin
28 ActiveDocument.PageSetup.OtherPagesTray = wdPrinterLowerBin
29 ActiveDocument.PageSetup.SectionStart = wdSectionNewPage
30 ActiveDocument.PageSetup.OddAndEvenPagesHeaderFooter = False
31 ActiveDocument.PageSetup.DifferentFirstPageHeaderFooter = True
32 ActiveDocument.PageSetup.VerticalAlignment = wdAlignVerticalTop
33 ActiveDocument.PageSetup.SuppressEndnotes = False
34 ActiveDocument.PageSetup.MirrorMargins = False
35 ActiveDocument.PageSetup.TwoPagesOnOne = False
36 ActiveDocument.PageSetup.BookFoldPrinting = False
37 ActiveDocument.PageSetup.BookFoldRevPrinting = False
38 ActiveDocument.PageSetup.BookFoldPrintingSheets = 1
39 ActiveDocument.PageSetup.GutterPos = wdGutterPosLeft
40 ActiveDocument.PageSetup.SetAsTemplateDefault
41 Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= wdPrintDocumentWithMarkup, Copies:=1, Pages:="", PageType:= wdPrintAllPages, Collate:=True, Background:=True, PrintToFile:=False, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, PrintZoomPaperHeight:=0
Exit Sub
LocalError:
MsgBox "Error " & Err.Number & " in line " & Erl() &": & Err.Description, vbCritical + vbOkOnly
End Sub
Premium Content
You need an Expert Office subscription to comment.Start Free Trial