Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Duplexing on a macro
I have recorded some macros to print various documents from various printer
trays and various number of copies. The only ones which don't work are the ones which require to be printed on both sides. Sub Grant() ' ' Grant Macro ' Macro recorded 26/06/2007 by jodywilliams ' With ActiveDocument.PageSetup .LineNumbering.Active = False .Orientation = wdOrientPortrait .TopMargin = CentimetersToPoints(2.54) .BottomMargin = CentimetersToPoints(2.54) .LeftMargin = CentimetersToPoints(3.17) .RightMargin = CentimetersToPoints(3.17) .Gutter = CentimetersToPoints(0) .HeaderDistance = CentimetersToPoints(1.25) .FooterDistance = CentimetersToPoints(1.25) .PageWidth = CentimetersToPoints(21) .PageHeight = CentimetersToPoints(29.7) .FirstPageTray = 264 .OtherPagesTray = 264 .SectionStart = wdSectionNewPage .OddAndEvenPagesHeaderFooter = False .DifferentFirstPageHeaderFooter = False .VerticalAlignment = wdAlignVerticalTop .SuppressEndnotes = False .MirrorMargins = False .TwoPagesOnOne = False .GutterPos = wdGutterPosLeft End With With Options .UpdateFieldsAtPrint = False .UpdateLinksAtPrint = False .DefaultTray = " Tray 3" .PrintBackground = True .PrintProperties = False .PrintFieldCodes = False .PrintComments = False .PrintHiddenText = False .PrintDrawingObjects = True .PrintDraft = False .PrintReverse = False .MapPaperSize = True End With With ActiveDocument .PrintPostScriptOverText = False .PrintFormsData = False End With Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _ wdPrintDocumentContent, Copies:=4, Pages:="", PageType:=wdPrintAllPages, _ Collate:=True, Background:=True, PrintToFile:=False, PrintZoomColumn:=0, _ PrintZoomRow:=0, PrintZoomPaperWidth:=0, PrintZoomPaperHeight:=0 End Sub I recorded this and on the printing options checked the box to print on both sides. Is there a way to guarantee the macro selects print on both sides? Many thanks for you help, Jody Williams |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Duplexing and changing paper trays at the same time | Page Layout | |||
Mail merged printing and duplexing | Mailmerge | |||
2nd page prints upside down when duplexing | Microsoft Word Help | |||
Duplexing with Binder | Microsoft Word Help | |||
Duplexing part of a document | Mailmerge |