rjef
asked on
2010 Word macro to print then close *.docm
need help making a word macro that will print the current open document then close the doc and word
i have
Private Sub Document_Open()
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
' Application.Quit savechanges:=wdDoNotSaveCh ange
End Sub
but when i un-rem the application.quit the document does not print.
i have
Private Sub Document_Open()
Application.PrintOut FileName:="", Range:=wdPrintAllDocument,
wdPrintDocumentWithMarkup,
wdPrintAllPages, Collate:=True, Background:=True, PrintToFile:=False, _
PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0
' Application.Quit savechanges:=wdDoNotSaveCh
End Sub
but when i un-rem the application.quit the document does not print.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.