PDA

View Full Version : Do not print Command Buttons



Divad
09-25-2007, 03:42 AM
I have a form that i have created and it has some command buttons that do some great snazzy things.

What i want to do is have the document print without the command buttons. i have had a look around the net but cannot seem to get something that works.

I have 3 buttons, on 2 of them i managed to hide the paragraph mark and the buttons do not print, but one of them does no matter what i try to do even if i copy one of the other ones.

I found some code:


Sub FilePrint()
'
' FilePrint Macro
' Prints the active document
'
Dialogs(wdDialogFilePrint).Show


End Sub

but am not sure what to put in there to stop the buttons from printing. :dunno

Can anyone help?

fumei
09-25-2007, 07:33 AM
I have 3 buttons, on 2 of them i managed to hide the paragraph mark and the buttons do not print,Could you explain that? Did you use Hidden font? If so, will that not work for the other one?

Divad
09-25-2007, 01:57 PM
Yeah, i used hidden font. What i have done since is copy the whole page with one of the command buttons that does not print, amended all the text and amended the command button macro and text and now they are all hidden when i print. I am getting someone else to try it out just to be sure. Maybe i shouldn't work but it does and that is fine by me :)