|
-
Jun 25th, 2000, 04:10 AM
#1
Thread Starter
Lively Member
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
-
Jun 25th, 2000, 04:15 AM
#2
In the click event, set the Visible property of command button to false, print the doc, then set the Visible property back to true.
"It's cold gin time again ..."
Check out my website here.
-
Jun 25th, 2000, 04:16 AM
#3
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?
-
Jun 25th, 2000, 04:53 AM
#4
Thread Starter
Lively Member
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
-
Jun 25th, 2000, 05:22 AM
#5
Addicted Member
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]
-
Jun 25th, 2000, 06:08 AM
#6
transcendental analytic
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
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|