View Single Post
  #1   Report Post  
steve.s
 
Posts: n/a
Default macro help required

Hi

I have created a macro to auto print out a document all works fine except i
get a message saying the margins are ser outside the printable area of the
page, and i have to click YES for it continue. Is there a way i can tell word
to either enter yes automatically or the macro to bypass any messages like
this

Thanks in advance

the existing macro line i am using is

Application.PrintOut FileName:= _
"C:\Documents and Settings\testprint.doc", Range:= _
wdPrintAllDocument, Item:=wdPrintDocumentContent, Copies:=1,
Pages:="", _
PageType:=wdPrintAllPages, Collate:=True, Background:=True,
PrintToFile:= _
False, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0