I'm using Word 2003. I have a document with a command button. When I print
the document the command button is printes as well.
In Excel the Command Button object has an attribute called PrintObject, but
this attribute do not exist for Command Buttons in Word.
In Word 2002 I could avoid printing the Command Button by specifying under
Tools - Settings - Print that Drawing Obejcts should not be printed, but in
2003 the buttons are printed even if I do specify that drawing objects
shalll not be printed.
How do I avoid printing the Comand Button?
Jan
Jonathan West - 27 Jan 2005 13:53 GMT
> I'm using Word 2003. I have a document with a command button. When I print
> the document the command button is printes as well.
[quoted text clipped - 8 lines]
>
> How do I avoid printing the Comand Button?
Hi Jan
Take a look here
How to hide a "Print" commandbutton on a document form when
a user clicks on it
http://word.mvps.org/FAQs/TblsFldsFms/HidePrintButton.htm

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
R. Frerichs - 24 Feb 2005 04:54 GMT
I posted this in an earlier thread and decided I had better put it here.
I went to the word.mvps.org page and followed the directions for the
nonprinting commandbutton. However, I can't get it to work in the protected
mode. When click the button, focus shifts to the first form field. If I
don't have it protected, it works but then all my form field get deleted when
typing is done. Any more suggestions?
> Hi Jan
>
[quoted text clipped - 3 lines]
> a user clicks on it
> http://word.mvps.org/FAQs/TblsFldsFms/HidePrintButton.htm
Ol - 27 Jan 2005 21:23 GMT
> I'm using Word 2003. I have a document with a command button. When I print
> the document the command button is printes as well.
[quoted text clipped - 10 lines]
>
> Jan
That macro will open copy of your document without macrobuttons.
Sub PrintedCopy()
Dim aShape As InlineShape
Dim Doc1 As Document
ActiveDocument.Range.Copy
Documents.Add
Set Doc1 = Documents(1)
Doc1.Range.Paste
For Each aShape In Doc1.InlineShapes
aShape.Delete
Next aShape
Doc1.Activate
End Sub
Jan Kronsell - 27 Jan 2005 22:11 GMT
Thank you. That did the trick. Do you know by any chance why the difference
beteween commandbuttons in Word and Excel? Or is it just a MS thing?
Jan
> > I'm using Word 2003. I have a document with a command button. When I print
> > the document the command button is printes as well.
[quoted text clipped - 25 lines]
> Doc1.Activate
> End Sub