I'm creating a Word template, when the user completes the template they click on the E-mail command button which opens up an e-mail and attaches the template to it, then the user sends the e-mail.
When the receiver opens the e-mailed template and prints the template the E-mail command button prints. I want to prevent the command button from printing.
I have placed the following coding within my command button but it prints the form out when the user clicks the button to send the template via e-mail.
With ActiveDocument
.Shapes(1).Visible = msoFalse
.PrintOut Background:=False
.Shapes(1).Visible = msoTrue
End With
My question is, can I put the above coding into a Sub FilePrint(), so that the button won't print when the receiver prints the e-mailed template?
Thanks
When the receiver opens the e-mailed template and prints the template the E-mail command button prints. I want to prevent the command button from printing.
I have placed the following coding within my command button but it prints the form out when the user clicks the button to send the template via e-mail.
With ActiveDocument
.Shapes(1).Visible = msoFalse
.PrintOut Background:=False
.Shapes(1).Visible = msoTrue
End With
My question is, can I put the above coding into a Sub FilePrint(), so that the button won't print when the receiver prints the e-mailed template?
Thanks