Link to home
Start Free TrialLog in
Avatar of rjef
rjefFlag for United States of America

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:=wdDoNotSaveChange
End Sub
but when i un-rem the application.quit the document does not print.
ASKER CERTIFIED SOLUTION
Avatar of Rgonzo1971
Rgonzo1971

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial