#1   Report Post  
Posted to microsoft.public.word.pagelayout
NotGood@All NotGood@All is offline
external usenet poster
 
Posts: 1
Default PrintButton

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
--
NotGood@All
  #2   Report Post  
Posted to microsoft.public.word.pagelayout
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default PrintButton

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

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



NotGood@All wrote:
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



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:52 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"