I want to put a command button on a word doc - on click - print out the doc.
Trouble is the button must not be on the hard copy.
Sounds easy dunnit -- yeah right!!
Try it and let me know
Printable View
I want to put a command button on a word doc - on click - print out the doc.
Trouble is the button must not be on the hard copy.
Sounds easy dunnit -- yeah right!!
Try it and let me know
In the click event, set the Visible property of command button to false, print the doc, then set the Visible property back to true.
I've never done a VB programming in Word, but can't you just do cmdMyButton.Visible = False as the first line of the button's click event?
Replies from an 'addicted member' and a 'guru' !!
I thought you guys only tackled tough stuff.
Unless I'm mistaken, a command button on a word doc doesn't have a visible property.
Now I do need a guru.
Thanks
Try this
With CommandButton1
.Width = 0
.Height = 0
.BackColor = vbWhite
End With
Its gone
GRAHAM :)
[Edited by GRAHAM on 06-25-2000 at 06:31 PM]
Well, Gurus must have right to post to easy things too! Yes and there's 1 minute between Martinliss and BruceG, so that explains that. I've never done programming in word either but i'm surprised that there isn't a visible property