PrintButton

N

NotGood@All

I have a form like document that I would like to put a "Print Button" on. I
would like to click it, it print the form as is, then close the document
without asking to save the changes. Can that be done?? If so, will someone
please lead me in the right direction??

Thanks
 
G

Graham Mayor

You need a macro attached to a custom toolbar (and the confidence that your
users will allow the macros stored in the document to run) eg

Sub PrintForm()
With ActiveDocument
.PrintOut
.Close SaveChanges:=wdDoNotSaveChanges
End With
End Sub

http://www.gmayor.com/installing_macro.htm


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
Top