Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA Word: Hiding a command button

Status
Not open for further replies.

njitter

Technical User
Sep 4, 2001
122
US
Hi,

i've got a little problem. I've got a report with some formfields etc in Word. I have a command-button on the form which i want to hide after it being pressed (it does some macro stuff after which all form-fields are locked).

The problem is, the command button does not have a visible or hide or delete property. I've tried setting the heighth and with to zero but there's still a dot visible on the printed report.

Anyone with an idea on how to hide this command button?

Thanks for your help,

Njit ---
It's never too late to do the Right thing
 
Hi,
CommandButton1.Visible = FALSE

VOLA! :) Skip,
metzgsk@voughtaircraft.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top