Command Buttons

R

rlampky

I have two command buttons on a form for referencing and updating a database
connection to a word form. (Thanks Mousetrax and Doug Robbins for giving me
a whole new perspective on Word applications)

How can I hide the command buttons when the form is printed out? I put them
inside an autotext and they pull data into the form as needed I then want to
print the form out and not have them visible.

And VBA code for that or a routine when the print command is initiated that
would remove or change the properties of the command buttons to hidden?
 
P

Peter Hewett

Hi rlampky

Set the command buttons Visible property to False, print your document, reset
the Visible property to True.

HTH + Cheers - Peter
 
R

rlampky

Thank you for the quick response.

Peter Hewett said:
Hi rlampky

Set the command buttons Visible property to False, print your document, reset
the Visible property to True.

HTH + Cheers - Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top